S
S
suumer2014-10-19 17:10:43
linux
suumer, 2014-10-19 17:10:43

How to restart httpd on a remote server if it has crashed?

Dropped httpd on a remote server CentOS 5.4
/etc/init.d/httpd restart doesn't help, gives the following:

bash-3.2# /etc/init.d/httpd restart
Останавливается httpd:                                     [ СБОЙ ]
Запускается httpd: (98)Address already in use: make_sock: could not bind to addr                    ess 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs
                                                           [ СБОЙ ]
bash-3.2#

netstat -lnp | grep '0.0.0.0:80' produces:
bash-3.2# netstat -lnp | grep '0.0.0.0:80'
tcp        0      0 0.0.0.0:80                  0.0.0.0:*                   LIST              EN      6719/httpd
bash-3.2#

Please tell me how to restart httpd in this case?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vladimir, 2014-10-19
@suumer

kill -9 6719
/etc/init.d/httpd restart

H
Hanggard, 2014-12-01
@Hanggard

kill -9 `pidof httpd`
service httpd start

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question