In Linux, chkconfig is set to boot automatically

Source: Internet
Author: User

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:

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.