PM2

https://www.npmjs.com/package/pm2

https://github.com/Unitech/pm2

https://pm2.io/doc/en/runtime/quick-start/

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

https://pm2.io/doc/en/runtime/overview/

https://pm2.io/doc/en/runtime/guide/installation/

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

PM2 & chmod +x-LMLPHP



# install $ npm install pm2 -g

PM2 & chmod +x-LMLPHP

PM2 & chmod +x-LMLPHP

$ pm2 list

$ mp2 start server.js

PM2 & chmod +x-LMLPHP


linux & chmod & 777

https://github.com/xgqfrms-GitHub/Node-CLI-Tools/blob/master/bash-shell-chmod.md


#!/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 JSONDB="nodemon -w ./server.js localhost 8888" ${JSONDB} &
# 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>

not a shell

PM2 &amp; chmod +x-LMLPHP

ok

PM2 &amp; chmod +x-LMLPHP

05-25 20:37