1. How to run command in backend?
$ nohup npm start &
or
$ npm start &
$ disown
參考 https://unix.stackexchange.com/questions/3886/difference-between-nohup-disown-and
2. pm2
Install - https://pm2.keymetrics.io/
pm2 list
pm2 start --name pinpoint-backend ./dist/main.js
pm2 restart pinpoint-backend
log位置 ~/.pm2/logs
查看xxx-error.log或者xxx-out.log