Home > Article > Operation and Maintenance > How to start apache server in linux
How to start the apache server in Linux?
Open a terminal, it is best to switch to su - root and execute the following command as root.
Recommended: "linux tutorial"
##Switch to root user cd to the /etc/rc.d/init.d/ directory to view the files in this directory. You can see that httpd has been installed Check the version of httpd You can also use the rpm -qa command to check whether httpd has been installed. Use the ps -ef command to check whether httpd should be running. You can also use the service httpd status command to check the running status of httpd. If httpd is not running, you can use service httpd start to start the http service If the default port 80 is used , after starting, you can enter localhost as shown below in the browser to test the httpd serviceThe above is the detailed content of How to start apache server in linux. For more information, please follow other related articles on the PHP Chinese website!