apache:restart_apache
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
apache:restart_apache [2016/07/04 00:43] – created peter | apache:restart_apache [2023/07/17 08:43] (current) – peter | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Apache - Restart Apache ====== | ====== Apache - Restart Apache ====== | ||
- | |||
Issue the following command: | Issue the following command: | ||
Line 7: | Line 6: | ||
service apache2 restart | service apache2 restart | ||
</ | </ | ||
+ | |||
+ | or | ||
+ | |||
+ | < | ||
+ | apachectl -k restart | ||
+ | </ | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== Restart Gracefully ===== | ||
+ | |||
+ | Ifrestarting the web server on a live website, it should be done gracefully. | ||
+ | |||
+ | A graceful restart tells the web sever to finish any active connections before restarting. | ||
+ | |||
+ | * This means that active visitors to the site will be able to finish downloading anything already in progress before the server restarts. | ||
+ | |||
+ | <code bash> | ||
+ | sudo / | ||
+ | </ | ||
+ | |||
+ | ---- | ||
+ | |||
+ |
apache/restart_apache.1467593031.txt.gz · Last modified: 2020/07/15 09:30 (external edit)