how to release localhost from Error: listen EADDRINUSE

前端 未结 28 2173
孤独总比滥情好
孤独总比滥情好 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:18

    When you get an error

    Error: listen EADDRINUSE

    Open command prompt and type the following instructions:

    netstat -a -o | grep 8080
    taskkill /F /PID** <*ur Process ID no*>
    

    after that restart phone gap interface.

    If you want to know which process ID phonegap is using, open TASK MANAGER and look at the Column heading PID and find the PID no.

提交回复
热议问题