- Introduction:
throughchkconfig
Command to set the running levels of a service fromStart/close chkconfig
Command management services in/etc/init.d
To view
- Note:
Centos7.0
After that, many services are usedsystemctl
management chkconfig
The basic grammar
- Check the service
chkconfig --list [| grep xxx]
Chkconfig service name --list
Chkconfig --level 5 Service name on/off
- Case study: Right
network
The service performs various operations on thenetwork
在3
Run level, turn off autostart
Chkconfig --level 3 network off // Chkconfig --level 3 network on // EnableCopy the code
- Using the details
chkconfig
After resetting the service, restart the machinereboot
To take effect.