百度空间 | 百度首页 
 
查看文章
 
注册编译apache为linux服务
2008-12-21 21:31

step1:将安装目录下的bin/apachectl文件复制为/etc/init.d/httpd
      cp /usr/local/apache/bin/apachectl /etc/init.d/httpd

step2:打开httpd文件,并在第一行#!/bin/sh下增加两行文字如下
      # chkconfig: 35 70 30(备注:运行级别35下默认启动)
      # description: Apache

step3:注册httpd服务
      chkconfig --add httpd(备注:删除为--del)

step4:启动apache
      service httpd start


类别:Linux | 添加到搜藏 | 浏览() | 评论 (2)
 
最近读者:
 
网友评论:
1
2009-02-07 18:30 | 回复
不错啊,http://hi.baidu.com/yybenet2009/
 
2
2009-02-07 18:31 | 回复
http://hi.baidu.com/yybenet2009/
 
发表评论:
姓 名:
网址或邮箱: (选填)
内 容:
验证码: 请点击后输入四位验证码,字母不区分大小写
      

     

©2009 Baidu