How to fix Error: listen EADDRINUSE while using nodejs?

前端 未结 30 3285
执念已碎
执念已碎 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:52

    lsof -i:3000;
    kill -9 $(lsof -t -i:3000);
    // 3000 is a your port
    // This "lsof -i:3000;" command will show PID 
    kill PID 
    ex: kill 129393
    

提交回复
热议问题