Wednesday, December 14, 2011

make_sock: could not bind to address 0.0.0.0:80

Centos, apache restart i got the following error

Starting httpd: (98)Address already in use: make_sock: could not bind to address

can anyone tell me what this error means?

# /etc/init.d/httpd restart

Stopping httpd: [ OK ]

Starting httpd: (98)Address already in use: make_sock: could not bind to address [::]:80

(98)Address already in use: make_sock: could not bind to address 0.0.0.0:80

no listening sockets available, shutting down

Unable to open logs

Fix for this problem

just run these 4 commands

# for i in `ps auwx | grep -i nobody | awk {'print $2'}`; do kill -9 $i; done
# for i in `lsof -i :80 | grep http | awk {' print $2'}`; do kill -9 $i; done
# for i in `lsof -i :80 | grep http | awk {' print $2'}`; do kill -9 $i; done
# service httpd restart

No comments:

Post a Comment