Linux under Chkconfig Setup boot from

Source: Internet
Author: User

Some new installation Services or scripts need to boot up, there are 2 ways to set up: one is to use Chkconfig to set up, and the second is to add the boot file to the rc.local boot from.

Introduction to the Chkconfig Setup method:

1) Start the file CP to/etc/init.d/or/etc/rc.d/init.d/(the former is the latter's soft connection)

2) Vim start file, must add two lines before the file, no side will prompt Chkconfig not support

#chkconfig: 35 20 80 represent runlevel, start priority, close priority

#description: HTTP server (self-play)//Two lines are commented out!!!

3) chkconfig--add script name (after 1) has been added)

Chkconfig--level 3 5 script name on//3 5 indicates runlevel

Chkconfig--list Script Name view basic boot situation

This article is from the "Chenli" blog, make sure to keep this source http://cl340266909.blog.51cto.com/2881514/1598556

Linux under Chkconfig Setup boot from

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.