mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-05 13:44:22 +00:00
Update cheatsheets
This commit is contained in:
30
linux/apache2ctl
Normal file
30
linux/apache2ctl
Normal file
@@ -0,0 +1,30 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# apache2ctl
|
||||
|
||||
> Administrate the Apache HTTP web server.
|
||||
> This command comes with Debian based OSes, for RHEL based ones see `httpd`.
|
||||
> More information: <https://manpages.debian.org/latest/apache2/apache2ctl.8.en.html>.
|
||||
|
||||
- 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`
|
||||
Reference in New Issue
Block a user