Home>Article>Operation and Maintenance> How to restart apache

How to restart apache

藏色散人
藏色散人 Original
2019-08-02 11:20:15 5243browse

How to restart apache

How to restart apache?

Assuming that the current Linux user's apahce installation directory is /usr/local/apache2, then use the following commands in the command line terminal to start, stop and restart apache.

1. The command to start apahce:

/usr/local/apache2/bin/apachectl start apache

2. The command to stop apache:

/usr/local/apache2/bin/apachectl stop

3. The command to restart apache:

/usr/local/apache2/bin/apachectl restart

To be in To restart the Apache server without interrupting the current connection, you should run:

/usr/local/sbin/apachectl graceful

If the current user's apache has been installed as a Linux service, you can use the following command to perform the above operations.

1. Start apache

service httpd start

2. Stop serving apache

service httpd stop

3. Restart apache

service httpd restart

Apache is the world's number one Web Server software. It can run on almost all widely used computer platforms and is one of the most popular web server-side software due to its cross-platform and security features. It is fast, reliable and can be extended through a simple API to compile interpreters such as Perl/Python into the server. At the same time, Apache is transliterated as Apache, which is a tribe of North American Indians called the Apache tribe in the southwestern United States. It is also the name of a foundation, an armed helicopter, etc.

For more Apache related knowledge, please visit theApache usage tutorialcolumn!

The above is the detailed content of How to restart apache. 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