linux chkconfig service - 自动启动项

【基本信息】
chkconfig - updates and queries runlevel information for system services

service
service - run a System V init script.
/etc/init.d  The directory containing System V init scripts.

【命令格式】
chkconfig命令参考
http://www.cnblogs.com/panjun-Donet/archive/2010/08/10/1796873.html

service SCRIPT COMMAND [OPTIONS]

【配置启动项】
1.复制命令到/ect/init.d/下面
2.如果不支持chkconfig的命令,修改文件
# chkconfig: 2345 08 92
#
# description: Automates a packet filtering firewall withipchains.
3.chkconfig --add command
4.chkconfig --level runlevel command

【其他方式】
1.可以配置/etc/rc.local

以上基于redhat5.1 centos5.8测试通过

【参考】
http://www.cnblogs.com/lexus/archive/2012/02/24/2365999.html
http://www.opensoce.com/331.html

猜你喜欢

转载自runpanda.iteye.com/blog/2074371
今日推荐