在数字海洋上部署MEAN应用程序更新的问题

问题描述 投票:0回答:1

该应用程序已在过去几个月中部署并处于活动状态,并且已经更多地使用更多前端更新(例如角度设计和布局)进行更新,我更新了app.js,这是nodejs服务器,而且之后无法加载,我已经恢复到之前的版本,就像我之前完成任何事情一样,但它似乎仍然没有工作,在Digital Ocean上,我使用pm2来运行服务器上的应用程序。我不明白为什么它会像这样。

我也有npm开始,只是为了看看它们是否是实际错误和后端,这就是我得到的:

Error: listen EADDRINUSE :::3000
    at Object.exports._errnoException (util.js:1020:11)
    at exports._exceptionWithHostPort (util.js:1043:20)
    at Server._listen2 (net.js:1271:14)
    at listen (net.js:1307:10)
    at Server.listen (net.js:1403:5)
    at EventEmitter.listen (/opt/node_modules/express/lib/application.js:618:24)
    at Object.<anonymous> (/opt/app.js:76:5)
    at Module._compile (module.js:577:32)
    at Object.Module._extensions..js (module.js:586:10)
    at Module.load (module.js:494:32)
    at tryModuleLoad (module.js:453:12)
    at Function.Module._load (module.js:445:3)
    at Module.runMain (module.js:611:10)
    at run (bootstrap_node.js:394:7)
    at startup (bootstrap_node.js:160:9)
    at bootstrap_node.js:507:3

npm ERR! Linux 4.4.0-116-generic
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "start"
npm ERR! node v6.14.2
npm ERR! npm  v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! [email protected] start: `node app`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script 'node app'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the downeycrm package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node app
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs downeycrm
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls downeycrm
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /opt/npm-debug.log

那是什么意思?

web-deployment mean digital-ocean pm2
1个回答
0
投票

Error: listen EADDRINUSE :::3000意味着另一个进程已经在您的主机上侦听端口3000,它可能是您当前正在运行的应用程序。

您可以运行netstat -nltp | grep 3000以查看它实际上是什么进程,然后终止它并重新启动您的应用程序。

© www.soinside.com 2019 - 2024. All rights reserved.