Differences
This shows you the differences between two versions of the page.
linux_wiki:start_stop_and_check_the_status_of_network_services [2016/03/03 21:10] billdozor |
linux_wiki:start_stop_and_check_the_status_of_network_services [2019/05/25 23:50] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Start Stop And Check The Status Of Network Services ====== | ||
- | |||
- | **General Information** | ||
- | |||
- | General service management. | ||
- | |||
- | ---- | ||
- | |||
- | Start a Network Service | ||
- | <code bash> | ||
- | systemctl start httpd | ||
- | </ | ||
- | |||
- | \\ | ||
- | Stop a Network Service | ||
- | <code bash> | ||
- | systemctl stop httpd | ||
- | </ | ||
- | |||
- | \\ | ||
- | Check to see if the service is active | ||
- | <code bash> | ||
- | systemctl is-active httpd | ||
- | </ | ||
- | |||
- | \\ | ||
- | Check Status of a Network Service | ||
- | <code bash> | ||
- | systemctl status httpd | ||
- | </ | ||
- | |||
- | \\ | ||
- | Check if the service is enabled at boot | ||
- | <code bash> | ||
- | systemctl is-enabled httpd | ||
- | </ | ||
- | |||
- | \\ | ||
- | Enable at boot | ||
- | <code bash> | ||
- | systemctl enable httpd | ||
- | </ | ||
- | |||
- | \\ | ||
- | Prevent a service from starting | ||
- | <code bash> | ||
- | systemctl mask httpd | ||
- | </ | ||
- | |||
- | \\ | ||
- | Undo preventing a service from starting | ||
- | <code bash> | ||
- | systemctl unmask httpd | ||
- | </ | ||
- | |||
- | ---- | ||
- | |||