NTSYSV Service Configuration Tool
Yum Install-y Ntsysv
Used to configure which services are turned on or off, somewhat like a graphical interface, but controlled using a keyboard. If you do not have this command, install it using Yum Install- y ntsysv . After installation, directly run the command NTSYSV Enter after a configuration interface:
650) this.width=650; "src="/e/u261/themes/default/images/spacer.gif "border=" 0 "style=" Background:url ("/e/u261/ Lang/zh-cn/images/localimage.png ") no-repeat center;border:1px solid #ddd;" alt= "Spacer.gif"/>
Press the top and bottom of the keyboard to adjust the red cursor, press the space can be selected to open or do not open, if the preceding brackets display a * is open otherwise does not open. This tool also allows you to see all the services in the current system. It is recommended to stop all other services except "Crond, Iptables, Network, sshd, Syslog, Irqbalance, SendMail, Microcode_ctl". When selected, press the TAB key to select OK, then enter to restart the machine to take effect.
2. Chkconfig Service Management Tools
[[email protected] ~]# ls /etc/init.d/abrt-ccpp cpuspeed ip6tables mdmonitor postfix sandboxabrtd crond iptables messagebus psacctsaslauthdabrt-oops functions irqbalance netconsole quota_nld singleacpid haldaemon kdump netfs rdisc smartdatd halt killall network restorecond sshdauditd htcacheclean lvm2-lvmetad ntpd rngd sysstatblk-availability httpd lvm2-monitor ntpdate Rsyslog udev-post
service service name start|stop|restart The service name here is/etc/init.d/ These files in the directory. In addition to using  service crond start Start Crond, you can also use / Etc/init.d/crond start to start.
chkconfig -- List lists all services and whether each level is turned on:
[[email protected] ~]# chkconfig --listabrt-ccpp 0: Off 1: Off 2: Off 3: Off 4: Off 5: Enable 6: Off ABRTD 0: Off 1: Off   2: Off 3: Off 4: Turn off 5: Enable 6: Turn off acpid 0: Off 1: Off 2: Enable 3: Turn off 4: Enable 5: Enable 6: Close atd 0: Close 1: Off 2: Off 3: Off 4: Enable 5: Enable 6: Turn off auditd 0: Off 1: Turn off   2: Enable 3: Off 4: Enable 5: Enable 6: Off blk-availability 0: Off 1: Enable   2: Enable &Nbsp; 3: Turn off 4: Enable 5: Enable 6: Turn off cpuspeed 0: Turn off 1: Enable   2: Enable 3: Turn off 4: Enable 5: Enable 6: Close crond 0: Turn off 1: Turn off   2: Enable 3: Enable 4: Enable 5: Enable 6: Turn off haldaemon 0: Off 1: Off 2: Off 3: Off 4: Enable 5: Enable 6: Close htcacheclean 0: Off 1: Off 2: Off 3: Off 4: Off 5: Off 6: Off httpd 0: Off 1: Close 2: Close 3: Close 4: Close 5: Close 6: Close Ip6tables 0: Off 1: Turn off   2: Enable 3: Turn off   4: Enable 5: Enable 6: Off IPtables 0: Off 1: Turn off   2: Enable 3: Enable 4: Enable 5: Enable 6: Turn off irqbalance 0: Off 1: Off 2: Turn off 3: Enable 4: Enable 5: Enable 6: Turn off kdump 0: Off 1: Off 2: Off 3: Off 4: Enable 5: Enable 6: Turn off lvm2-monitor 0: Turn off 1: Enable 2: Enable 3: Turn off 4: Enable 5: Enable 6: Turn off mdmonitor 0: Off 1: Turn off   2: Enable 3: Turn off 4: Enable 5: Enable 6: Close messagebus 0: Close 1: Turn off   2: Enable 3: Off 4: Enable 5: Enable 6: Off netconsole 0: Off 1: Off   2: Close 3: Off 4: Off 5: Off 6: Off netfs 0: Off 1: Off 2: Off 3: Off 4: Enable 5: Enable 6: Close network 0: Close 1: Turn off   2: Enable 3: Enable 4: Enable 5: Enable 6: Turn off ntpd 0: Off 1: Off 2: Off 3: Off 4: Off 5: Off 6: Off ntpdate 0: Off 1: Off 2 : Off 3: Off 4: Off 5: Off 6: Off postfix 0: Off 1: Off 2: Enable 3: Turn off 4: Enable 5: Enable 6: Close psacct 0: Close 1: Turn off   2: Close 3: Close &Nbsp; 4: Off 5: Off 6: Off quota_nld 0: Off 1: Close 2: Close 3: Close 4: Close 5: Close 6: Close rdisc 0: Off 1: Off 2: Off 3: Off 4: Off 5: Off 6: Off restorecond 0: Off 1: Off   2: Close 3: Close 4: Close 5: Close 6: Close rngd 0: Off 1: Off 2: Off 3: Off 4: Off 5: Off 6: Off rsyslog 0: Off 1: Turn off   2: Enable 3: Turn off 4: Enable 5: Enable 6: Turn off SASLAUTHD 0: Off 1: Off 2: Off 3: Off 4: Off 5: Close 6: Close SMArtd 0: Off 1: Off   2: Off 3: Off 4: Off 5: Off 6: Off sshd 0: Off 1: Turn off   2: Enable 3: Enable 4: Enable   5: Enable 6: Off sysstat 0: Turn off 1: Enable 2 : Enable 3: Enable 4: Enable 5: Enable 6: Turn off udev-post 0: Turn off 1: Enable   2: Enable 3: Turn off 4: Enable 5: Enable 6: Shut down
The level here (0,1,2,3,4,5,6) is the number of/etc/inittab inside the boot level, 0, 1, 6 the operating level is reserved by the system: 0 as Shutdown action, 1 as a reboot to single-user mode, 6 restart; In the general Linux system implementation, are used in 2, 3, 4, 5 levels, in the CentOS system, 2 represents a multiuser mode without NFS support, 3 represents a full multiuser mode (also the most commonly used level), 4 is reserved for user customization, and 5 represents the graphical login method. We can use the grep command to filter out the services we want to see:
[[email protected] ~]# chkconfig--list |grep croncrond 0: Off 1: Off 2: Enable 3: Enable 4: Enable 5: Enable 6: Off
Now that we've just seen whether the services are on at each level, how do you change which level is turned on?
[[email protected] ~]# chkconfig--level 3 crond off[[email protected] ~]# chkconfig--list |grep croncrond 0: Off 1: Off 2: Enable 3: Off 4: Enable 5: Enable 6: Off
Specify the level with --level , followed by the service name, then off or on,'--level can also be followed by multiple levels:
[[email protected] ~]# chkconfig--level 345 crond off[[email protected] ~]# chkconfig--list |grep croncrond 0: Off 1: Off 2: Enabled 3: Off 4: off 5: off 6: Off
You can also omit the level, which is the default for 2,3,4,5 level operations:
[[email protected] ~]# chkconfig crond on[[email protected] ~]# chkconfig--list |grep croncrond 0: Off 1: off 2: Kai With 3: Enable 4: Enable 5: Enable 6: Off
service service name start In this form, and can be  chkconfig --list found in. Of course it can be deleted.
[[email protected] ~]# chkconfig--del crond[[email protected] ~]# chkconfig--list |grep cron[[email protected] ~]# CHKCO Nfig--add crond[[email protected] ~]# chkconfig--list |grep croncrond 0: Off 1: Off 2: Enable 3: Enable 4: Enable 5: Enable 6: Off
This feature is commonly used to add custom startup scripts to system services. About the system services to say these things, in fact, there are a lot of content Amin not introduced, the reason is very simple, a lot of you can not digest and more than you can not use.
This article is from "Linux rookie" blog, please be sure to keep this source http://490617581.blog.51cto.com/11186315/1757835
Linux System Services