Linux basic commands-optimized boot auto-load service

Source: Internet
Author: User

Linux will automatically start some services each time you boot, if you want to optimize the default boot system services, you can use the following two tools.

1:NTSYSV command

2:chkconfig command


One, Ntsysv command

Use the NYSYSV command alone, only for system services under the current RunLevel, and add the--level option to optimize system services at other levels.

Use the command NTSYSV--level 35//Show all services that start automatically at run Level 3, 5

650) this.width=650; "src=" http://s4.51cto.com/wyfs02/M01/79/B6/wKiom1aYqzWSjRTbAADxBQYtxvo201.jpg "title=" 1.jpg " alt= "Wkiom1ayqzwsjrtbaadxbqytxvo201.jpg"/>


Two, Chkconfig command

format: Chkconfig--level Run level service name on/ off //Set a service to start or close automatically at a certain level

chkconfig--list Service name //View the startup status of a service


Use command: Chkconfig--level postfix on// set up Postfix service starts automatically at level 3 and 5

Chkconfig--list postfix //View the boot status of the postfix command

650) this.width=650; "src=" http://s4.51cto.com/wyfs02/M01/79/B6/wKiom1aYrczjRkYWAAAmnGWcOyA919.jpg "title=" 2.jpg " alt= "Wkiom1ayrczjrkywaaamngwcoya919.jpg"/>



This article is from the "New Start" blog, so be sure to keep this source http://yuanshuai.blog.51cto.com/10539781/1735384

Linux basic commands-optimized boot auto-load service

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.