Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
linux_wiki:start_stop_and_check_the_status_of_network_services [2016/02/29 21:28] billdozor created |
linux_wiki:start_stop_and_check_the_status_of_network_services [2019/05/25 23:50] (current) |
||
---|---|---|---|
Line 3: | Line 3: | ||
**General Information** | **General Information** | ||
- | About this page/ | + | General service management. |
---- | ---- | ||
- | Objective could mean the network service or an actual service that uses network resources. | + | Start a Network Service |
- | + | ||
- | Start Network Service | + | |
<code bash> | <code bash> | ||
- | systemctl start network.service | ||
systemctl start httpd | systemctl start httpd | ||
</ | </ | ||
- | Stop Network Service | + | \\ |
+ | Stop a Network Service | ||
<code bash> | <code bash> | ||
- | systemctl stop network.service | ||
systemctl stop httpd | systemctl stop httpd | ||
</ | </ | ||
- | Check Status of Network Service | + | \\ |
+ | Check to see if the service is active | ||
+ | <code bash> | ||
+ | systemctl is-active httpd | ||
+ | </ | ||
+ | |||
+ | \\ | ||
+ | Check Status of a Network Service | ||
<code bash> | <code bash> | ||
- | systemctl status network.service | ||
- | systemctl is-enabled network.service | ||
systemctl status httpd | systemctl status httpd | ||
</ | </ | ||
+ | \\ | ||
+ | Check if the service is enabled at boot | ||
+ | <code bash> | ||
+ | systemctl is-enabled httpd | ||
+ | </ | ||
+ | |||
+ | \\ | ||
Enable at boot | Enable at boot | ||
<code bash> | <code bash> | ||
systemctl enable httpd | systemctl enable httpd | ||
+ | </ | ||
+ | |||
+ | \\ | ||
+ | Prevent a service from starting | ||
+ | <code bash> | ||
+ | systemctl mask httpd | ||
+ | </ | ||
+ | |||
+ | \\ | ||
+ | Undo preventing a service from starting | ||
+ | <code bash> | ||
+ | systemctl unmask httpd | ||
</ | </ | ||