Close port 8080 on Mavericks

I am trying to run Vagrantpress, which by default redirects port 80 of the VM to the host port 8080. However, it reports that another application is using port 8080 and is not loading.

Looking around, it seems that using something like this lsof | grep :8080should display the application using the port. However, this command returns empty.

Using Mavericks Network Utility> Port Scan I get the following:

Port Scan has started…

Port Scanning host: 127.0.0.1

 Open TCP Port:     80          http
 Open TCP Port:     631         ipp
 Open TCP Port:     1023
 Open TCP Port:     3128        ndl-aas
 Open TCP Port:     5001        commplex-link
 Open TCP Port:     5003        fmpro-internal
 Open TCP Port:     5432        postgresql
 Open TCP Port:     8080        http-alt
 Open TCP Port:     20559
 Open TCP Port:     29754
 Open TCP Port:     49524
 Open TCP Port:     49525
Port Scan has completed…

But I cannot figure out how to close http-alt so that the port can be used by another application.

+4
source share
2 answers
+2

lsof -i :8080 lsof | grep :8080 netstat -nap | grep :8080 ( OS X, BSD), PID / .

, auto_correct: true ,

Vagrant.configure("2") do |config|
  config.vm.network "forwarded_port", guest: 80, host: 8080,
    auto_correct: true
end

a vagrant reload.

+1

Source: https://habr.com/ru/post/1536671/


All Articles