linux stop and view the command usage method to start the service

  • 2020-05-07 20:48:12
  • OfStack

1. View the services started by Linux


chkconfig --list  Query out all currently running services 
chkconfig --list atd   The query atd The current state of the service 

2. Stop all services and do not start again the next time the system starts, as shown below:


chkconfig --levels 12345 NetworkManager off

If you want to see the currently running service, filter it with the following statement

chkconfig --list |grep on
 

3. If you just want the current setup state to be valid and it will not take effect after the system restarts, you can stop the service with the following command


service sshd stop


Related articles: