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

后端 未结 11 1730
鱼传尺愫
鱼传尺愫 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:07

    sudo lsof -i:8080
    

    By running the above command you can see what are all the jobs running.

    kill -9 
    

    Enter the PID (process identification number), so this will terminate/kill the instance.

提交回复
热议问题