How to restart apache?
Restart Apache under windows
● First, right-click "This Computer" and click "Manage";
● In In the "Computer Management" program that opens, double-click "Services and Applications."
● In the "Computer Management" program that opens, double-click "Services".
● In the list of all services, click "apache";
● If apache is not started, "Start Service" is displayed on the left, and clicking it will start the service
● If apache has been started, "Stop and Restart Service" is displayed on the left. Clicking it will perform the operation
Restart Apache under Linux
Assume the apahce installation directory of the current Linux user 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:
1 |
|
2. The command to stop apache:
1 |
|
3. The command to restart apache:
1 |
|
To be in To restart the Apache server without interrupting the current connection, you should run:
1 |
|
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
1 |
|
2. Stop serving apache
1 |
|
3. Restart apache
1 |
|
For more Apache related knowledge, please visitApache usage tutorial column!
The above is the detailed content of How to restart apache. For more information, please follow other related articles on the PHP Chinese website!