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!!