[[linux_wiki:start_stop_and_check_the_status_of_network_services]]

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
linux_wiki:start_stop_and_check_the_status_of_network_services [2016/03/01 02:28]
billdozor created
linux_wiki:start_stop_and_check_the_status_of_network_services [2019/05/26 03:50] (current)
Line 3: Line 3:
 **General Information** **General Information**
  
-About this page/​how-to/​script+General service management
  
 ---- ----
  
-Objective could mean the network service or an actual service that uses network resources. +Start Network Service
- +
-Start Network Service+
 <code bash> <code bash>
-systemctl start network.service 
 systemctl start httpd systemctl start httpd
 </​code>​ </​code>​
  
-Stop Network Service+\\ 
 +Stop Network Service
 <code bash> <code bash>
-systemctl stop network.service 
 systemctl stop httpd systemctl stop httpd
 </​code>​ </​code>​
  
-Check Status of Network Service+\\ 
 +Check to see if the service is active 
 +<code bash> 
 +systemctl is-active httpd 
 +</​code>​ 
 + 
 +\\ 
 +Check Status of Network Service
 <code bash> <code bash>
-systemctl status network.service 
-systemctl is-enabled network.service 
 systemctl status httpd systemctl status httpd
 </​code>​ </​code>​
  
 +\\
 +Check if the service is enabled at boot
 +<code bash>
 +systemctl is-enabled httpd
 +</​code>​
 +
 +\\
 Enable at boot Enable at boot
 <code bash> <code bash>
 systemctl enable httpd systemctl enable httpd
 +</​code>​
 +
 +\\
 +Prevent a service from starting
 +<code bash>
 +systemctl mask httpd
 +</​code>​
 +
 +\\
 +Undo preventing a service from starting
 +<code bash>
 +systemctl unmask httpd
 </​code>​ </​code>​
  
  • linux_wiki/start_stop_and_check_the_status_of_network_services.txt
  • Last modified: 2019/05/26 03:50
  • (external edit)