Get the App
SLTechnology News&Howtos  ›  Servers  › 

The method of starting apache Server in linux system

Shulou Source: shulou.com Published: 2022-06-03 02:41:09 09月22日 Update

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.

Tags: Service command method server system more directory article switch run good practical following figure content file article best browser version status Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Apple Shulou Information Microsoft Xiaomi macOS