linux修改啓動項

查看啓動項: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

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章