HTTPD corrupted HTTPD Service stopped

Source: Internet
Author: User

In the afternoon when the site on AWS EC2 is inaccessible, and the IP is accessible, login to SSH and view the service

Service--status-all

Discover that the HTTPD service is stopped, and then try to start httpd, prompt:

Starting httpd: () Permission denied:AH00058:Error retrieving PID file/var/run/httpd/httpd.pidah00059:remove it befor e Continuing if it is corrupted.

Google found an article:

Http://serverfault.com/questions/544879/service-httpd-restart-failure-on-aws-amazon-linux-ami

Follow the answers and finally solve

To be said, to use the root account in EC2, the command is:

sudo su

Slightly different from the answer, I try to

Su-root

Failed

And then the KILL command did not succeed,

Used a

For i in ' Lsof-i: 80 | grep http | awk {' Print $ '} '; Do kill-9 $i; Done

After that, start httpd again, and it succeeds.

HTTPD corrupted HTTPD Service stopped

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.