This issue is encountered when installing deployment ganglia, and the httpd version 2.2.15,centos version is 6.4.
Installation method:
<span style= "Color:rgb (221, 221, 221); Font-family:monospace; line-height:22px; Background-color:rgb (51, 51, 51); " >yum Install httpd</span>
After the installation is complete, start everything to display normally, but when viewing the httpd status:
Service httpd status
httpd dead but Subsys locked
Try to delete the lock:
sudo rm-f/var/lock/subsys/httpd
No effect, then restart httpd, error:
Service httpd Restart
stopping httpd: [FAILED]
starting httpd: (98) Address already in use:make_sock:could not bi nd to address 10.10.26.11:80
No listening sockets available, shutting down
unable to open logs
[FAILED]
So, all kinds of internet Google find ways, have not solved.
Then check httpd.conf found that the Pidfile variable is set to Run/httpd.pid by default and turns it to/var/run:
Pidfile/var/run/httpd.pid
Also in/ETC/SYSCONFIG/HTTPD modify:
Pidfile=/var/run/httpd.pid
Kill the httpd process (or kill it via Port lookup):
Killall-9 httpd
To delete a lock:
sudo rm-f/var/lock/subsys/httpd
Restart httpd:
sudo service httpd restart
This solves the problem:
Service httpd status
httpd (PID 14331) is running ...
Reference: https://awaseroot.wordpress.com/2012/06/11/subsys-lock-problem-with-centos-6-2-and-apache/#more-330
Installation Ganglia reference:
1.http://blog.csdn.net/wsgzg1991/article/details/9496907
2.http://www.cnblogs.com/richardzhu/p/3481996.html
3.http://www.tuicool.com/articles/qjuqym
4.http://www.codesec.net/view/148180.html
5.http://www.tuicool.com/articles/yyjeyz