In Linux, chkconfig is set to boot automatically
In Linux, some newly installed services or scripts need to be automatically started upon startup. You can set them in two ways: Use chkconfig to set the Startup File, and add the Startup File to rc. start from the local machine.
Overview of chkconfig settings:
1) cp the Startup File to/etc/init. d/or/etc/rc. d/init. d/(the former is the latter's soft connection ).
2) In the vim Startup File, you must add two lines before the file. If not, the system will prompt that chkconfig is not supported.
# Chkconfig: 35 20 80 indicates the running level, start priority, and disable priority.
# Description: http server (available on your own) // comment out both lines !!!
3) chkconfig -- add Script Name (1) after the operation, it is added)
Chkconfig -- level 3 5 Script Name on // 3 5 indicates the running level
Chkconfig -- list Script Name to view basic startup information
This article permanently updates the link address: