![]() |
广嵌科技 广嵌教育 English | |
|
Linux系统中加入自定义Shell为系统服务
来源:赛迪网 作者:skid 时间:2008-05-20 发布人:华女
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 ·上一条:离子迁移谱仪嵌入式系统的设计
|
相关信息 |
|||||||||||||||||||
| Copyright ©2005-2007 广东省嵌入式软件公共技术中心.All Rights Reserved.版权所有 复制必究 客户服务支持:020-32068395-832 24小时服务热线:13631411558 技术支持与报障:gdesc@midea.com.cn 020-32068395-807/809 粤ICP备05104135号 |