Chkconfig command usage in Linux system

Source: Internet
Author: User
The Chkconfig command can be used to check and set various services of the system

Use syntax:
chkconfig [--add][--del][--list][system service] or Chkconfig [--level < class Code >][system service][on/off/reset]
Parameter usage:
--addà adds the specified system service, allows the CHKCONFIG directive to manage it, and adds relevant data to the system-initiated narrative file.
--delà deletes the specified system service, is no longer managed by the Chkconfig directive, and deletes the relevant data within the system-initiated narrative file.
--level< Class Code >à specifies which execution level the read system service is to open or close.
Examples of Use:
Chkconfig--list List of all system services
Chkconfig--add httpd Add httpd Service
Chkconfig--del httpd Delete httpd service
Chkconfig--level httpd 2345 on httpd is on when the operation level is 2, 3, 4, 5.

The Chkconfig command provides an easy way to set the runlevel of a service. For example, to set up a MySQL server to run at run Level 3 and 4, you must first add MySQL as a service managed by Chkconfig:

Chkconfig command usage in Linux system

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.