pm2 进程管理

2023-05-17  本文已影响0人  行走的蛋白质
npm install -g pm2
pm2 start app.js        // 启动
pm2 start app.js -i max //启动 使用所有CPU核心的集群
pm2 stop app.js         // 停止
pm2 stop all            // 停止所有
pm2 restart app.js      // 重启
pm2 restart all         // 重启所有
pm2 delete  app.js      // 关闭
上一篇 下一篇

猜你喜欢

热点阅读