Chinaunix首页 | 论坛 | 博客
  • 博客访问: 140990
  • 博文数量: 27
  • 博客积分: 2196
  • 博客等级: 大尉
  • 技术积分: 330
  • 用 户 组: 普通用户
  • 注册时间: 2008-07-17 10:29
文章存档

2008年(27)

我的朋友

分类: 系统运维

2008-07-25 15:22:54

问题:
装完 apache 并且已经能运行正常,但是开机启动时,虽然是已经启动了 apache ,但启动时菜单并不显

示启动 apache 的字样,在 # chkconfig --list httpd 时,也无有 httpd 服务的字样列出,想把

chkconfig httpd on 加进去,但又显示 :httpd 服务不支持 chkconfig

答案:cp apache/bin/apachectl /etc/init.d/httpd ----将apachectl复制到/etc/init.d目录并重命名为httpd

vi httpd在第2行添加下面的注释:

# chkconfig: - 85 15
# description: Apache is a World Wide Web server. It is used to serve \
# HTML files and CGI.

然后chkconfig httpd on 即可加入。
阅读(1467) | 评论(0) | 转发(0) |
0

上一篇:xinetd

下一篇:Mysql安装到进阶大全

给主人留下些什么吧!~~