Boot item management, centos6 uses chkconfig, centos7 uses systemctl
chkconfig
1. Startup service query: chkconfig --list
2. Delete startup items: chkconfig --del 服务名
3. Add startup items: The service must be queried in the /etc/init.d directory chkconfig --add 服务名
. The default services 0-6 are turned off. Turn on or off a startup item (Startup item: 0, shutdown mode; 1, single user mode; 2, multi-user mode without network service; 3, multi-user mode; 4, custom mode; 5, graphical interface mode; 6. Restart mode):
chkconfig --level 35 服务名 on/off
systemctl
1. Open the service: systemctl enable 服务名
2. Close the service: systemctl disable 服务名
3. Check the startup items:systemctl list-unit-files