This article is mainly to share with you Linux under the Apache reboot and view the PHP environment, this article mainly in code to share with you, I hope to help everyone.
First switch to the INIT.D directory
Cd/etc/rc.d/init.d
Then LS lists the directories:
Use Httpd-v to view the version of the httpd that you have installed.
Using Rpm-qa | grep httpd to see if the httpd is already installed
Using Ps-ef | grep httpd Viewing the httpd process
Use service httpd status to view the running status of HTTPD
Use service httpd stop to stop httpd
Use service httpd start to launch httpd
After the service httpd is started, you can enter the http://localhost browsing test in the browser, if you can see the page as shown below, the Apache will work properly.
If Apache is installed as a Linux service, you can do this with the following command:
Service httpd Start
Service httpd Restart Restart
Service httpd Stop Services