Nodejs application Error: bind EADDRINUSE when use pm2 deploy

Nodejs application Error: bind EADDRINUSE when use pm2 deploy

You need to verify if the port is already took on your system. To do that:

  • On linux: sudo netstat -nltp | grep 3000
  • On OSX: sudo lsof -i -P | grep 3000

If you have a result, you need to kill the process (kill <pid>).

 

sudo kill -9  pid

学术交流文章,不做为临床依据,特此声明。发布者:Chu,转转请注明出处:https://www.icu.cn/?p=2118