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