Linux中国 Linux中国门户站!
设为主页 设为主页
收藏本站 收藏本站
 
当前位置 :首页 ->Linux技术 ->网络应用 ->正文

Linux系统中加入自定义Shell为系统服务

来源: 作者:Webmaster 时间:2008-08-18 点击: [收藏] [投稿]

1. [root@localhost ~]# cp /usr/local/apache2/bin/apachectl /etc/init.d/httpd

2. [root@localhost ~]# vi /etc/init.d/httpd

3. 在第二行加入(必须,否则无法加入)

# chkconfig: 2345 85 15

# description: httpd is web server(此处为描述)。

说明:2345表示在2345这四种启动级别里面加载这个服务,85表示启动(开机时)顺序号,15表示关闭(关机时)顺序号。

4. [root@localhost ~]# chkconfig -add httpd

5. [root@localhost ~]# chkconfig --level 35 httpd on

(责任编辑:云子)



 如果您对本文有任何疑问或者建议,请到讨论区发表您的意见: >> 论坛入口 <<



上一篇:RHCE实验:Linux下基于xinetd的访问控制   下一篇:Linux操作系统下Xmanager工具登录配置

文章评论】 【收藏本文】 【推荐好友】 【打印本文】 【我要投稿】 【论坛讨论
更多相关文章
Power by linux-cn.com 粤ICP备05006655号