How to fix Error: listen EADDRINUSE while using nodejs?

前端 未结 30 3806
执念已碎
执念已碎 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条回答
  •  Happy的楠姐
    2020-11-22 07:02

    The option which is working for me :

    Run:

    ps -ax | grep node
    

    You'll get something like:

     8078 pts/7    Tl     0:01 node server.js
     8489 pts/10   S+     0:00 grep --color=auto node    
     kill -9 8078
    

提交回复
热议问题