mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-29 23:24:55 +02:00
33 lines
501 B
Markdown
33 lines
501 B
Markdown
![]() |
# apachectl
|
||
|
|
||
|
> Control an Apache HTTP server.
|
||
|
> More information: <https://manned.org/apachectl>.
|
||
|
|
||
|
- Start the server:
|
||
|
|
||
|
`sudo apachectl start`
|
||
|
|
||
|
- Restart the server:
|
||
|
|
||
|
`sudo apachectl restart`
|
||
|
|
||
|
- Stop the server:
|
||
|
|
||
|
`sudo apachectl stop`
|
||
|
|
||
|
- Test configuration file validity:
|
||
|
|
||
|
`apachectl configtest`
|
||
|
|
||
|
- Check server status (requires the lynx browser):
|
||
|
|
||
|
`apachectl status`
|
||
|
|
||
|
- Reload configuration without dropping connections:
|
||
|
|
||
|
`sudo apachectl graceful`
|
||
|
|
||
|
- Print full Apache configuration:
|
||
|
|
||
|
`apachectl -S`
|