查看启动项:chkconfig --list
增加启动项:chkconfig –add mysqld start
Chkconfig –add httpd start
Chkconfig –level 5 httpd on
Chkconfig –level 5 iptables off
Chkconfig –level 5 mysqld off
linux启动项2007-10-29 11:36修改/etc/rc.local就可以了
例如:
#!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.
touch /var/lock/subsys/local
echo 250 32000 100 128 > /proc/sys/kernel/sem
echo 2147483648 > /proc/sys/kernel/shmmax
echo 4096 > /proc/sys/kernel/shmmni
echo 2097152 > /proc/sys/kernel/shmall
/usr/local/apache/bin/apachectl start