how to release localhost from Error: listen EADDRINUSE

前端 未结 28 2127
孤独总比滥情好
孤独总比滥情好 2020-11-28 17:53

i am testing a server written in nodejs on windows 7 and when i try to run the tester in the command line i get the following error

Error: listen EADDRINUSE
         


        
28条回答
  •  挽巷
    挽巷 (楼主)
    2020-11-28 18:29

    Run:

    ps -ax | grep node
    

    You'll get something like:

    60778 ??         0:00.62 /usr/local/bin/node abc.js
    

    Then do:

    kill -9 60778
    

提交回复
热议问题