1. ........ ....... ....... ....... ....... ...
Friendly display of the running status of all services:
Service--status-all
Chkconfig--list
2. ............. ......... ...
To view the running status of a single service
Such as
Service sshd Status
3. ............. ......... ...
View startup status, start automatically
Chkconfig--list ServiceName
0: Boot
1: Single user mode
2: Multiuser mode, does not have network Archive system (NFS) function
3: Multi-user mode, with Network Archive system (NFS) function
4: Some distributions Linux uses this level to enter the X Windows system
5: Same 4
6: Reboot
Note: Remember useless 1 and 6
To turn off or turn on service status:
Chkconfig--level 345 NSCD off/on
4. ............... ......... ...
Additional services:
Chkconfig--add XXX (Note: Service scripts must be stored in the/etc/init.d/directory)
such as Mysqld
[Root@www mysql-5.1.59] #cp support-files/mysql.server etc/init.d/mysqld
Chkconfig mysqld on (each level is on, each level is 2345 levels)
This will start in the form of a system service.
To delete a service:
Chkconfig--del XXX
RunLevel view the current level.
Note: The run level is the functional level at which the operating system is running.