How to start apache server in linux

藏色散人
Release: 2019-12-14 16:55:39
Original
7297 people have browsed it

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template