Node.js + Express: app won't start listening on port 80

后端 未结 4 1777
误落风尘
误落风尘 2020-12-12 14:49

I create and launch an app like this:

express -s -t ejs
npm install express
npm install ejs
node app.js

and it works (on port 3000). But wh

4条回答
  •  爱一瞬间的悲伤
    2020-12-12 15:54

    Perhaps there is something else running on port 80 previously?

    Perhaps do a port scan and confirm that it is not being used already?

    nc -z <> 80
    

提交回复
热议问题