Check httpd status after installing Apache "httpd dead but Subsys locked" issue

Source: Internet
Author: User
Tags centos

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.