Linux bash shell All In One

Linux bash shell All In One

Linux

Linux bash shell All In One

https://tinylab.gitbooks.io/shellbook/content/zh/chapters/01-chapter1.html

https://github.com/qinjx/30min_guides/blob/master/shell.md


$ cd ./api/ # db.json
# nodemon -w server.js 8888
# json-server -w -p 3000 db.json $ /bin/sh sudo db.sh

bash shell

https://tinylab.gitbooks.io/shellbook/content/zh/chapters/01-chapter1.html

https://linuxconfig.org/bash-scripting-tutorial

nodemon

shit cli

https://github.com/remy/nodemon/wiki#options

stop

https://teamtreehouse.com/community/how-do-i-stop-nodemon


$ ps -ef | grep node $ sudo kill -9 <PID>

http://jpsierens.com/tutorial-livereload-nodemon-gulp/

Restful API & CURD

https://medium.com/quick-code/node-js-restful-api-with-dynamodb-local-7e342a934a24

https://www.codementor.io/olatundegaruba/nodejs-restful-apis-in-10-minutes-q0sgsfhbd

https://hackernoon.com/full-stack-web-application-using-react-node-js-express-and-webpack-97dbd5b9d708

https://medium.freecodecamp.org/building-a-simple-node-js-api-in-under-30-minutes-a07ea9e390d2

https://zellwk.com/blog/crud-express-mongodb/

PM2

Advanced, production process manager for Node.js

https://pm2.keymetrics.io/


$ npm install pm2 -g

https://pm2.keymetrics.io/docs/usage/quick-start/

Linux bash shell All In One

Linux bash shell All In One

PM2 ecosystem.config.js

https://doc.pm2.io/en/runtime/guide/ecosystem-file/

https://pm2.keymetrics.io/docs/usage/application-declaration/

https://*.com/questions/47166609/how-can-i-get-pm2-to-use-my-ecosystem-config-js-file-on-reboot

Linux bash shell All In One

nodemon

shit cli

https://github.com/remy/nodemon/wiki#options

stop

https://teamtreehouse.com/community/how-do-i-stop-nodemon


$ ps -ef | grep node $ sudo kill -9 <PID>

http://jpsierens.com/tutorial-livereload-nodemon-gulp/

Restful API & CURD

https://medium.com/quick-code/node-js-restful-api-with-dynamodb-local-7e342a934a24

https://www.codementor.io/olatundegaruba/nodejs-restful-apis-in-10-minutes-q0sgsfhbd

https://hackernoon.com/full-stack-web-application-using-react-node-js-express-and-webpack-97dbd5b9d708

https://medium.freecodecamp.org/building-a-simple-node-js-api-in-under-30-minutes-a07ea9e390d2

https://zellwk.com/blog/crud-express-mongodb/

shell


#!/bin/sh # echo "^-v-^ JSON DB is running in development env!" && npm run db echo "^-v-^ JSON DB is running in development env!" && nodemon -w ./server.js localhost 8888 # chmod +x db.sh
# sudo ./db.sh
# nodemon -w ./server.js localhost 8888 # /bin/sh db.sh # ps -ef | grep node
# sudo kill -9 <PID>

Linux & bash & shell

ps

https://www.binarytides.com/linux-ps-command/

PID & PPID

https://www.lifewire.com/uses-of-linux-ps-command-4058715

Linux bash shell All In One

PPID & PID

Linux bash shell All In One

Linux bash shell All In One

Linux bash shell All In One

https://www.binarytides.com/linux-ps-command/

https://www.computerhope.com/unix/ups.htm

https://www.pslinux.online/

https://www.digitalocean.com/community/tutorials/how-to-use-ps-kill-and-nice-to-manage-processes-in-linux

https://unix.stackexchange.com/questions/82724/ps-switches-to-display-pid-ppid-pgid-and-sid-collectively

refs


Linux bash shell All In One

xgqfrms 2012-2020

www.cnblogs.com 发布文章使用:只允许注册用户才可以访问!


上一篇:Java多线程Thread


下一篇:POJ 1745 Divisibility【DP】