当前位置:论坛首页 > Linux面板 > 讨论

【待反馈】pm2运行失败

发表在 Linux面板2020-9-29 23:11 [复制链接] 2 1514

我使用命令行工具可以运行起来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。
使用道具 举报 只看该作者 回复
发表于 2020-9-29 23:39:50 | 显示全部楼层
我解决了,应该是宝塔的问题。进入服务器,找到你项目的目录;输入 pm2 start app.js,手动启动pm2就好了。这个应该属于宝塔pm2的问题,希望可以帮助到你们,哈哈哈
使用道具 举报 回复 支持 反对
发表于 2020-9-30 09:19:10 | 显示全部楼层
宝塔用户_uhowjn 发表于 2020-9-29 23:39
我解决了,应该是宝塔的问题。进入服务器,找到你项目的目录;输入 pm2 start app.js,手动启动pm2就好了。 ...

您好,提示有权限拒绝,同时你js文件内是有报错的。你可使用pm2 list看看项目运行是否正常。
使用道具 举报 回复 支持 反对
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

普通问题处理

论坛响应时间:72小时

问题处理方式:排队(仅解答)

工作时间:白班:9:00 - 18:00

紧急运维服务

响应时间:3分钟

问题处理方式:宝塔专家1对1服务

工作时间:工作日:9:00 - 18:30

宝塔专业团队为您解决服务器疑难问题

点击联系技术免费分析

工作时间:09:00至18:30

快速回复 返回顶部 返回列表