我使用命令行工具可以运行起来app,但是使用pm2却没法运行。错误是这样的 node:18625) DeprecationWarning: current URL string parser is deprecated, and will be removed in a future version. To use the new parser, pass option { useNewUrlParser: true } to MongoClient.connect.(node:18625) DeprecationWarning: current Server Discovery and Monitoring engine is deprecated, and will be removed in a future version. To use the new Server Discover and Monitoring engine, pass option { useUnifiedTopology: true } to the MongoClient constructor.
Error: listen EACCES: permission denied 192.168.0.149:80
at Server.setupListenHandle [as _listen2] (net.js:1296:21)
at listenInCluster (net.js:1361:12)
at doListen (net.js:1498:7)
at processTicksAndRejections (internal/process/task_queues.js:85:21) {
code: 'EACCES',
errno: 'EACCES',
syscall: 'listen',
address: '192.168.0.149',
port: 80
}
貌似是端口的问题,但是我使用命令行工具却可以。CentOS 7.6 64bit,pm2版本12.18.4。
|
|