Usage of chkConfig in linux. mysqld is automatically started upon startup.

Source: Internet
Author: User

In linux, the usage of chkConfig is as follows: chkconfig [-- add] [-- del] [-- list] [System Service] Or chkconfig [-- level <level code>] [System Service] [on/off/reset] parameter usage: -- add: adds the specified system service, enables the chkconfig command to manage it, and adds relevant data in the system startup description file. -- Del: Delete the specified system service. It is no longer managed by the chkconfig command, and relevant data is also deleted in the description file started by the system. -- Level <level code>: Specifies the execution level of the read system service. Example: chkconfig -- list all system services chkconfig -- add httpd service chkconfig -- del httpd Delete httpd service chkconfig -- level httpd 2345 on set httpd to 2, 3, 4, in case of 5, all are on (Enabled). The chkconfig command provides a simple way to set the running level of a service. For example, to set the MySQL server to run at runtime Level 3 and 4, you must first add MySQL as a service managed by chkconfig: chkconfig -- add mysql now, we set the service to "on" chkconfig -- level 35 mysql on level 3 and 5 to off chkconfig -- level 01246 mysql off at other levels to confirm that your configuration is correct. modified, we can list the running levels that the service will run, as shown below: # chkconfig -- list mysql 0: off 1: off 2: off 3: on 4: off 5: on 6: off

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.