How can I kill whatever process is using port 8080 so that I can vagrant up?

后端 未结 11 1711
鱼传尺愫
鱼传尺愫 2020-12-07 07:13

On MacOSX, I\'m using Packer to build a Vagrant box so I need to continually bring it up and tear it down. I\'m attempting to \'vagrant up\', and receive the standard error

11条回答
  •  感情败类
    2020-12-07 08:06

    In case above-accepted answer did not work, try below solution. You can use it for port 8080 or for any other ports.

    sudo lsof -i tcp:3000 
    

    Replace 3000 with whichever port you want. Run below command to kill that process.

    sudo kill -9 PID
    

    PID is process ID you want to kill.

    Below is the output of commands on mac Terminal.

提交回复
热议问题