Use shell commands to stop or run services --- Service
# Service xinetd stop // stop running the xinetd service
Stopping xinetd:
# Service xinetd start // start the xinetd service
Tip: sometimes when we use Linux for Internet access, we cannot connect to the Internet. In fact, sometimes we may shut down
Close the firewall and run the following command: # service iptables stop
Configuration command for service startup status:
1. ntsysv
2. chkconfig. This command has powerful functions. Let's take a look:
View the service startup status: # chkconfig -- list [Services]
E. g .:
# Chkconfig -- list // view the startup status of all services in the system.
# Chkconfig -- list syslog // view the startup status of the syslog service.
Set the startup status of an independent service: # chkconfig -- level <runlevel list> <Serivces> <ON/OFF/Reset>
E.g .:
# Chkconfig -- level 123 syslog off // indicates that the syslog service stops running at 1, 2, and 3.