How to fix Error: listen EADDRINUSE while using nodejs?

前端 未结 30 3739
执念已碎
执念已碎 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 07:04

    In my case Apache HTTP Server was run on port 80 I solved it by issue the command as root

    sudo killall httpd

    Update

    If Jenkin is installed and running on your Mac;

    1. You can check it with sudo lsof -i tcp:8080
    2. If Yes, and You want to stop Jenkins only once, run: sudo launchctl unload /Library/LaunchDaemons/org.jenkins-ci.plist

提交回复
热议问题