重新启动Nginx时PM2崩溃

时间:2020-06-03 03:34:03

标签: node.js nginx pm2

enter image description here

然后,当我运行systemctl restart nginx时,它将状态更改为errored

从pm2日志中

0|index    |     at Module.load (internal/modules/cjs/loader.js:986:32)
0|index    |     at Function.Module._load (internal/modules/cjs/loader.js:879:14)
0|index    |     at Object.<anonymous> (/usr/local/lib/node_modules/pm2/lib/ProcessContainerFork.js:32:23)
0|index    |     at Module._compile (internal/modules/cjs/loader.js:1138:30)
0|index    |     at Object.Module._extensions..js (internal/modules/cjs/loader.js:1158:10)
0|index    |     at Module.load (internal/modules/cjs/loader.js:986:32)
0|index    |     at Function.Module._load (internal/modules/cjs/loader.js:879:14)
0|index    |     at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12)
0|index    |     at internal/main/run_main_module.js:17:47 {
0|index    |   code: 'EADDRINUSE',
0|index    |   errno: 'EADDRINUSE',
0|index    |   syscall: 'listen',
0|index    |   address: '::',
0|index    |   port: 8080
0|index    | }

是因为在我的nginx服务器块中,proxy_pass位于localhost:8080上吗?

0 个答案:

没有答案