Home » Linux tips

Address already in use: make_sock:

26 April 2008 0 views No Comment

Currently 1 of the under my monitoring is down. I check it and found that the 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 in terminal:

[root@inertz ]#lsof -i :80

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

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

[root@inertz ]#lsof -i :80

[root@inertz ]#

[root@inertz ]#service start

running fine after that.

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

Tags: , , , , , , , , , , ,

Related posts

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=""> <strike> <strong>

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