Thursday 5 December 2013

could not bind to address no listening sockets available, shutting downUnable to open logs

Yesterday i tried to restart my apache service ( httpd) in my server but i got following error

[root@server ~]# service httpd restart
Stopping httpd:                                            [  FAILED  ]
httpd not running,
trying to start(98)Address already in use: make_sock: could not bind to address x.x.x.x:80 no
listening sockets available, shutting downUnable to open logs
                                                           [  FAILED  ]
[root@server ~]#


After i checked my server http established connection using following command

[root@st-web ~]# netstat -n | grep :80 |wc -l
1800

[root@server ~]# pgrep httpd | wc -l
1800

Then i killed all the http established connection and restart the httpd service

[root@server ~]# killall httpd

[root@server ~]# service httpd restart
Stopping httpd:                                            [  OK  ]
Starting httpd:                                             [  OK  ]



My issue resolved...