(48) Address already in use: make_sock: could not bind to address [::]: 80 on OS x Mavericks

I just updated my OSX with Mavericks yesterday and now I get an error when using apache and Jetty. It was used to map the example.com domain directly to the local host.

Now, it seems, to run my application server, I must explicitly specify the port for my server (e.g. example.com:8080)

While I run the command below.

 sudo apachectl -e debug

I will get

 [debug] mod_so.c(246): loaded module jk_module
(48)Address already in use: make_sock: could not bind to address [::]:80
(48)Address already in use: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down

I ran a lot of diff commands to kill all httpd processes and also find the port that is listening on this port.

ex. sudo lsof -i :80

httpd      946          root    5u  IPv6 0xe0c8ad50898bcf0f      0t0  TCP *:http (LISTEN)
httpd      947          _www    5u  IPv6 0xe0c8ad50898bcf0f      0t0  TCP *:http (LISTEN)
httpd      949          _www    5u  IPv6 0xe0c8ad50898bcf0f      0t0  TCP *:http (LISTEN)
httpd      954          _www    5u  IPv6 0xe0c8ad50898bcf0f      0t0  TCP *:http (LISTEN)
Google    1633 jignesh.sheth   59u  IPv4 0xe0c8ad508597efaf      0t0  TCP example.com:53742->stackoverflow.com:http (ESTABLISHED)
Google    1633 jignesh.sheth  189u  IPv4 0xe0c8ad5082027faf      0t0  TCP example.com:53725->stackoverflow.com:http (ESTABLISHED)

Any idea what I'm doing wrong?

+4
source share
3 answers

, "Listern 80" , .

+4

. Apache /var/log/apache */ ", : make_sock: 0.0.0.0:443". "sudo lsof -i:", , . sudo apachectl start. apache .

This may help: https://superuser.com/questions/479146/macports-apache2-could-not-bind-to-address/479147#479147?newreg=95099c6a74724da49640329d4ee400f2

+2
source

All Articles