PM2 is a production process manager for Node.js applications with a built-in load balancer. It allows you to keep applications alive forever, to reload them without downtime and to facilitate common ations alive forever, to reload them without downtime and to facilitate common system admin tas.
你去查查nohup這個指令。
透過
&
或ctrl+c
把任務轉到後台執行即可。https://github.com/Unitech/PM2
線上部署,使用pm2能自動守護程式。
PM2 is a production process manager for Node.js applications with a built-in load balancer. It allows you to keep applications alive forever, to reload them without downtime and to facilitate common ations alive forever, to reload them without downtime and to facilitate common system admin tas.
screen 是個利器
寫了一個簡單的sh腳本,把npm start指令放入。然後 nohup /root/test.sh & 竟然可以了
永遠
雷雷