xgqfrms™, xgqfrms® : xgqfrms's offical website of GitHub!

Linux bash shell All In One

Linux

image

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/

image

image

PM2 ecosystem.config.js

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

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

https://stackoverflow.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://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

image

PPID & PID

image

image

image

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



©xgqfrms 2012-2020

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


原文地址:https://www.cnblogs.com/xgqfrms/p/9433889.html