How to start node.js on port 80 on a linux server?

后端 未结 5 1493
暖寄归人
暖寄归人 2021-01-03 04:47

When I try to start node on port 80, the error tells me that the port is in use. I imagine that\'s Apache.

What is the proper way to \"take over\" port 80, and keep

5条回答
  •  灰色年华
    2021-01-03 05:34

    A constantly running unused apache maybe a security hole, in any case no sense in running unused services.

    On the chance you're on ubuntu, this what I used..

    sudo service apache2 stop
    sudo update-rc.d apache2 remove
    

提交回复
热议问题