Ubuntu 16.04, how to make the nodejs application automatically restart when the system restarts?
I used it
npm install -g forever
forever start app.js
But restarting the system does not automatically start app.js, you still have to restart it manually
把启动命令放在开机启动脚本里面
用pm2 执行pm2 startup 然后pm2 save