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
关键词标签:Redhat,CentOS,apahce
相关阅读
热门文章 ISAPI Rewrite实现IIS图片防盗链IIS6.0下配置MySQL+PHP5+Zend+phpMyAdmin在Windows服务器上快速架设视频编解码器全攻win2000server IIS和tomcat5多站点配置
人气排行 XAMPP配置出现403错误“Access forbidden!”的解决办法WIN2003 IIS6.0+PHP+ASP+MYSQL优化配置访问网站403错误 Forbidden解决方法Server Application Unavailable的解决办法如何从最大用户并发数推算出系统最大用户数报错“HTTP/1.1 400 Bad Request”的处理方法http 500内部服务器错误的解决办法(windows xp + IIS5.0)Windows Server 2003的Web接口
查看所有0条评论>>