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

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

    try netstat

    netstat -vanp tcp | grep 3000
    

    if your netstat doesn't support -p , use lsof

    sudo lsof -i tcp:3000 
    

    For Centos 7 use

    netstat -vanp --tcp | grep 3000
    

提交回复
热议问题