Home  >  Article  >  Operation and Maintenance  >  How to start apache server in linux

How to start apache server in linux

藏色散人
藏色散人Original
2019-12-14 16:55:107265browse

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"

How to start apache server in linux

##Switch to root user

How to start apache server in linux

cd to the /etc/rc.d/init.d/ directory to view the files in this directory. You can see that httpd has been installed

How to start apache server in linux

Check the version of httpd

How to start apache server in linux

You can also use the rpm -qa command to check whether httpd has been installed.

How to start apache server in linux

Use the ps -ef command to check whether httpd should be running.

How to start apache server in linux

You can also use the service httpd status command to check the running status of httpd.

How to start apache server in linux

If httpd is not running, you can use service httpd start to start the http service

How to start apache server in linux

If the default port 80 is used , after starting, you can enter localhost as shown below in the browser to test the httpd service

How to start apache server in linux

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

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn