xshell连接阿里云的centos,然后运行通过npm start运行一个node项目,关闭xshell后,node项目也没运行了,这个该怎么弄啊?
xshell连接阿里云的centos,然后运行通过npm start运行一个node项目,关闭xshell后,node项目也没运行了,这个该怎么弄啊?
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 system admin tasks.
3 回答2.6k 阅读✓ 已解决
1 回答907 阅读✓ 已解决
1 回答848 阅读✓ 已解决
2 回答1.2k 阅读
1 回答692 阅读✓ 已解决
3 回答670 阅读✓ 已解决
1 回答851 阅读✓ 已解决
你去查查nohup这个命令。