Skip to content

Instantly share code, notes, and snippets.

@wxianfeng
Created May 31, 2012 16:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wxianfeng/2844671 to your computer and use it in GitHub Desktop.
Save wxianfeng/2844671 to your computer and use it in GitHub Desktop.
centos 开机自启动服务
# http://www.centos.bz/2011/09/centos-setup-process-startup-boot/
one method:
>chkconfig httpd on
生成了 /etc/rc.d/init.d/httpd
another method:
>vi /etc/rc.local
see list:
[root@www ~]# chkconfig --list
auditd 0:off 1:off 2:on 3:on 4:on 5:on 6:off
crond 0:off 1:off 2:on 3:on 4:on 5:on 6:off
dovecot 0:off 1:off 2:off 3:on 4:off 5:off 6:off
httpd 0:off 1:off 2:on 3:on 4:on 5:on 6:off
ip6tables 0:off 1:off 2:on 3:on 4:on 5:on 6:off
iptables 0:off 1:off 2:on 3:on 4:on 5:on 6:off
jexec 0:on 1:on 2:on 3:on 4:on 5:on 6:on
matahari-broker 0:off 1:off 2:off 3:off 4:off 5:off 6:off
matahari-host 0:off 1:off 2:off 3:off 4:off 5:off 6:off
matahari-network 0:off 1:off 2:off 3:off 4:off 5:off 6:off
matahari-service 0:off 1:off 2:off 3:off 4:off 5:off 6:off
matahari-sysconfig 0:off 1:off 2:off 3:off 4:off 5:off 6:off
messagebus 0:off 1:off 2:on 3:on 4:on 5:on 6:off
mysqld 0:off 1:off 2:off 3:on 4:off 5:off 6:off
netconsole 0:off 1:off 2:off 3:off 4:off 5:off 6:off
netfs 0:off 1:off 2:off 3:on 4:on 5:on 6:off
network 0:off 1:off 2:on 3:on 4:on 5:on 6:off
postfix 0:off 1:off 2:on 3:on 4:on 5:on 6:off
qpidd 0:off 1:off 2:on 3:on 4:on 5:on 6:off
rdisc 0:off 1:off 2:off 3:off 4:off 5:off 6:off
restorecond 0:off 1:off 2:off 3:off 4:off 5:off 6:off
rsyslog 0:off 1:off 2:on 3:on 4:on 5:on 6:off
saslauthd 0:off 1:off 2:off 3:on 4:off 5:off 6:off
sshd 0:off 1:off 2:on 3:on 4:on 5:on 6:off
udev-post 0:off 1:on 2:on 3:on 4:on 5:on 6:off
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment