pm2 start 任务 会导致被覆盖是什么原因,而且pm2 delete all 卡住不动
发布于 8 天前 作者 jackieli123723 376 次浏览 来自 问答

image.png

2 回复

而且 最多 只能启动两个 启动第三个任务 会报错

[root@VM_134_103_redhat nuxt-api]# pm2 start deploy.js --name admin --max-memory-restart 300M
[PM2] Starting /home/nuxt-api/deploy.js in fork_mode (1 instance)
[PM2][ERROR] Error while launching application Error: spawn ENOMEM
    at ChildProcess.spawn (internal/child_process.js:355:11)
    at spawn (child_process.js:521:9)
    at /usr/local/lib/node_modules/pm2/lib/God/ForkMode.js:112:20
    at /usr/local/lib/node_modules/pm2/node_modules/async/internal/once.js:12:16
    at next (/usr/local/lib/node_modules/pm2/node_modules/async/waterfall.js:21:29)
    at /usr/local/lib/node_modules/pm2/node_modules/async/internal/onlyOnce.js:12:16
    at WriteStream.<anonymous> (/usr/local/lib/node_modules/pm2/lib/Utility.js:186:13)
    at WriteStream.emit (events.js:182:13)
    at WriteStream.EventEmitter.emit (domain.js:460:23)
    at fs.open (fs.js:2238:10)

root身份,人才

回到顶部