Run the command chkconfig to start CentOS at startup.

Source: Internet
Author: User

Run the command chkconfig to start CentOS at startup. Run the command chkconfig at startup of CentOS: chkconfig 1. view the startup list: chkconfig -- list Description: all services are output. If the list does not contain the services you want to start 2. add service: www.2cto.com chkconfig -- add servicename3. Delete service: chkconfig -- del servicename 4. view the specific startup service information: chkconfig -- list servicename such as chkconfig -- list httpd output: httpd 0: off 1: off 2: off 3: off 4: off 5: off 6: off Description: If the output values 0-6 are off, it indicates that the system is not started automatically. 5. enable auto start service: www.2cto.com chkconfig httpd on6. enable Auto Stop Service: chkconfig httpd off7. Level option: chkconfig -- level 35 httpd on set Level3 and Level5 to on 8. 0-6 indicates the meaning level. 0 indicates the shutdown level. 1 indicates the single user mode. 2 indicates the multi-user command line mode without network connection. 3 indicates the command line mode: multi-user command line mode with network connection level 4: unavailable Level 5: multi-user mode with graphic interface level 6: restart
 

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.