Linux bash shell All In One
Linux
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://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
$ npm install pm2 -g
https://pm2.keymetrics.io/docs/usage/quick-start/
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
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://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
PPID & PID
https://www.binarytides.com/linux-ps-command/
https://www.computerhope.com/unix/ups.htm
refs
xgqfrms 2012-2020
www.cnblogs.com 发布文章使用:只允许注册用户才可以访问!