1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-06-30 22:15:22 +02:00

apache2ctl: add page (#2073)

This commit is contained in:
Amit Sharma 2018-05-02 16:11:22 +05:30 committed by Owen Voke
parent 4033673bc6
commit e10778e24c

24
pages/linux/apache2ctl.md Normal file
View file

@ -0,0 +1,24 @@
# apache2ctl
> The CLI tool to administrate HTTP web server Apache.
> This commmand comes with Debian based OSes, for RHEL based ones see `httpd`.
- Start the Apache daemon. Throw a message if it is already running:
`sudo apache2ctl start`
- Stop the Apache daemon:
`sudo apache2ctl stop`
- Restart the Apache daemon:
`sudo apache2ctl restart`
- Test syntax of the configuration file:
`sudo apache2ctl -t`
- List loaded modules:
`sudo apache2ctl -M`