- 我用pm2部署的
- 进程一旦出错,就无法重启
- pm2.log如下:
root@WEB:~/.pm2# tail -f pm2.log at process._tickDomainCallback (node.js:394:17) 2016-06-30 10:26:45: App name:web id:1 disconnected 2016-06-30 10:29:42: Starting execution sequence in -cluster mode- for app name:web id:0 2016-06-30 10:29:42: Error: spawn /usr/local/bin/node ENOENT at exports._errnoException (util.js:874:11) at Process.ChildProcess._handle.onexit (internal/child_process.js:178:32) at onErrorNT (internal/child_process.js:344:16) at doNTCallback2 (node.js:439:9) at process._tickDomainCallback (node.js:394:17) 2016-06-30 10:29:42: App name:web id:0 disconnected
@mike442144,我用 node bin/web可以正常启动,应该证明node没问题
root@WEB:/# ls -l /usr/local/bin/node -rwxrwxr-x 1 500 500 24110125 Oct 14 2015 /usr/local/bin/node