linux Service Management
1 Background Service Management
service network status to view the status of the specified service
service network stop Stop the specified service
service network start start the specified service
service network restart to restart the specified service
service --status-all view all the background services system
2 Set back from the start of the service configuration
chkconfig View all server configuration from the start
chkconfig iptables off service to start automatically turn off specified
chkconfig iptables on open automatically start the specified service
Mysql start automatically add == === service
boot:
chkconfig --add mysqld
chkconfig mysqld on
3 Start Level Management System
vi / etc / inittab
# Default runlevel. The runlevels used are:
# 0 - halt (Do NOT set initdefault to this)
# 1 - Single user mode
# 2 - Multiuser, without NFS (The same as 3, if you do not have networking)
# 3 - Full multiuser mode
# 4 - unused
# 5 - X11
# 6 - reboot (Do NOT set initdefault to this)
#
id:3:initdefault: