How to fix Error: listen EADDRINUSE while using nodejs?

前端 未结 30 3763
执念已碎
执念已碎 2020-11-22 06:44

If I run a server with the port 80, and I try to use xmlHTTPrequest i get this error: Error: listen EADDRINUSE

Why is it problem for nodejs, if I want t

30条回答
  •  没有蜡笔的小新
    2020-11-22 06:58

    You should try killing the process that is listening on port 80.

    Killall will kill all the node apps running. You might not want to do that. With this command you can kill only the one app that is listening on a known port.

    If using unix try this command:

    sudo fuser -k 80/tcp    
    

提交回复
热议问题