Home » Uncategorized » 26 April 2008 » » No Comment »

Address already in use: make_sock:

26 April 2008 No Comment

Currently 1 of the server under my monitoring is down. I check it and found that the httpd service cannot be started.

When i try to restart the service, it give me the following error:

(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

I ran this command in terminal:

[root@inertz home]#lsof -i :80

COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME
shbd 8050 nobody 6u IPv4 2194754 TCP *:http (LISTEN)
h1t3m 9268 nobody 6u IPv4 2194754 TCP *:http (LISTEN)
sh 14588 nobody 6u IPv4 2194754 TCP *:http (LISTEN)
r0 14589 nobody 6u IPv4 2194754 TCP *:http (LISTEN

[root@inertz home]#kill -9 8050 9268 14588 14589

[root@inertz home]#lsof -i :80

[root@inertz home]#

[root@inertz home]#service httpd start

Webserver running fine after that.

There are two type of signal for kill. You can set the signal to 15(Graceful Kill) or 9(Forcible Kill). Use 15, it will wait until the process finished and kill the process. Choose 9 to force to kill the process even it still not finished.




Leave your response!

Add your comment below, or trackback from your own site. You can also subscribe to these comments via RSS.

Be nice. Keep it clean. Stay on topic. No spam.

You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

This is a Gravatar-enabled weblog. To get your own globally-recognized-avatar, please register at Gravatar.