Chinaunix首页 | 论坛 | 博客
  • 博客访问: 404188
  • 博文数量: 80
  • 博客积分: 8021
  • 博客等级: 中将
  • 技术积分: 1075
  • 用 户 组: 普通用户
  • 注册时间: 2007-09-08 10:36
文章分类

全部博文(80)

文章存档

2010年(3)

2009年(25)

2008年(52)

我的朋友

分类: 系统运维

2009-04-19 10:58:24

apache安装路径:/usr/local/apache

方法1
编辑/etc/rc.d/rc.local,增加一行:
/usr/local/apache/bin/apachectl start

方法2
#cp /usr/local/apache/bin/apachectl /etc/rc.d/init.d/
编辑/etc/init.d/apachectl,在第一行#!/bin/sh下增加两行:
# chkconfig: 2345 80 60
# description: Apache Start&Stop Scripts
添加到系统服务
#chkconfig --add apachectl

手动启动/停止服务
#/etc/init.d/apachectl start/stop
或:
#service apachectl start/stop

阅读(594) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~