How the LINUX operating system starts the HTTPD service __linux

Source: Internet
Author: User
How to start the httpd service under Linux

See if native Linux has httpd installed

See where the httpd command is placed

by command

cat/etc/httpd/conf/httpd.conf | More

To view the contents of the httpd.conf configuration file

Here's the DocumentRoot "/var/www/html."

Refers to the way the Web page is stored

The paths in the double quotes here are the same as those in the double quotes of the DocumentRoot "/var/www/html"

The listen80 here refers to the default port used by HTTP

Search listen can quickly find

Use the command service httpd status to view the running state of httpd

You can see the httpd is running here.

Using the command service httpd stop stops the HTTP service

Use service httpd start to start httpd services

You can restart the HTTPD service using only service httpd restart.

The above is to learn the small series for you to provide solutions, hope to help everyone!!! Finally hope everyone 2016 better, Happy New Year!!

Related Article

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.