The method of starting apache Server in linux system
This article will explain in detail how to start the apache server in the linux system. The editor thinks it is very practical, so I share it with you for reference. I hope you can get something after reading this article.
To open a terminal terminal, it is best to switch to su-root to execute the following command as root.
Switch to root user
Cd to the / etc/rc.d/init.d/ directory to look at the files in that directory, you can see that httpd has been installed
View the version of httpd
You can also use the rpm-qa command to see if httpd is installed.
Use the ps-ef command to see if httpd should be running.
You can also use the service httpd status command to view the running status of httpd.
If httpd is not running, you can use service httpd start to start the http service
If you are using the default port 80, after startup, you can enter the localhost shown in the following figure in the browser to test the httpd service
The method of starting the apache server in the linux system is shared here. I hope the above content can be helpful to you and learn more knowledge. If you think the article is good, you can share it for more people to see.