You can use the PM2 command to start the application directly, or use process.json: 🎜
rrreee
🎜Then use pm2 start process.json to start🎜
🎜Several common commands: 🎜
🎜pm2 list: Display all applications pm2 monit: Display application monitoring panel pm2 logs: Display real-time log pm2 restart [id]: Restart the application pm2 stop [id]: Stop the application pm2 kill [id]: Close Application 🎜
Give up Baidu
The most popular tool now is PM2: https://github.com/Unitech/pm2
You can simply install
npm install -g pm2
globally, and then start the application with PM2.npm install -g pm2
,然后用 PM2 启动应用即可。可以使用 PM2 命令直接启动应用,或者使用
process.json
:然后用
pm2 start process.json
来启动几个常用命令:
You can use the PM2 command to start the application directly, or usepm2 list
:显示所有应用pm2 monit
:显示应用监控面板pm2 logs
:显示实时 logpm2 restart [id]
:重启应用pm2 stop [id]
:停止应用pm2 kill [id]
process.json
: 🎜 rrreee 🎜Then usepm2 start process.json
to start🎜 🎜Several common commands: 🎜 🎜pm2 list
: Display all applicationspm2 monit
: Display application monitoring panelpm2 logs
: Display real-time logpm2 restart [id]
: Restart the applicationpm2 stop [id]
: Stop the applicationpm2 kill [id]
: Close Application 🎜This express advanced article introduces pm2 and StrongLoop Process Manager. I use StrongLoop Process Manager here, but it comes with a lot of things
Provide an article for reference only. Use centos6 to build a nodejs server and set up a blog
Yes, use
pm2