How to restart apache

藏色散人
Release: 2019-08-02 11:20:15
Original
5263 people have browsed it

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
Copy after login

2. The command to stop apache:

/usr/local/apache2/bin/apachectl stop
Copy after login

3. The command to restart apache:

/usr/local/apache2/bin/apachectl restart
Copy after login

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

/usr/local/sbin/apachectl graceful
Copy after login

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
Copy after login

2. Stop serving apache

service httpd stop
Copy after login

3. Restart apache

service httpd restart
Copy after login

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!

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
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!