谁能帮助我解决apache-2.0.52自动启动的问题

[入库:2005年9月21日] [更新:2007年3月24日]

本文简介:


本人http2.x很正常,但是没有配置成开机自动运行.
于是我就cp /home/apache2/bin/apachectl /etc/rc.d/init.d/httpd
然后chkconfig httpd on,
系统提示:httpd服务不支持chkconfig?
问题出在哪里了呢?我每次只好手动启动了

 caojiqun 回复于:2004-10-03 19:25:06
不知道你是什么系统,我的做法是在/etc/rc2.d加一个S99Apache,里面写上
/home/apache2/bin/apachectl start &

 mrsanny 回复于:2004-10-10 16:53:13
我的系统是redhat9.0

 level 回复于:2004-10-11 08:36:07
用这个命令try:chkconfig --add httpd

 wudicc 回复于:2004-10-25 16:18:38
从/usr/local/apache/bin/apachectl  到  /etc/rc.d/init.d/httpd 建立一个符号连接:
# ln -s /usr/local/apache/bin/apachectl /etc/rc.d/init.d/httpd

然后在此文件总添加以下几行(大概在文件顶部,约第二行的地方):

# chkconfig: 2345 10 90 (10 和 90是代表的意思我还不太清楚,请高手指教)
# description: Activates/Deactivates Apache Web Server

最后,运行chkconfig把Apache添加到系统的启动服务组里面:

# /sbin/chkconfig --del httpd
# /sbin/chkconfig --add httpd

 fke7985 回复于:2005-02-22 16:05:13
# chkconfig: 2345 10 90 (10 和 90是代表的意思我还不太清楚,请高手指教) 
# description: Activates/Deactivates Apache Web Server 


2345是要设为要启动的运行级别,10是起启优先级,楼上的兄弟,10这个数可能太小啦,有可能apache依赖的服务没有启动(好像也没有依赖什么其它的服务),后面一个数也就是90是杀死进程的优先级,就是谁优先挂掉的意思,呵呵

本文关键:谁能帮助我解决apache-2.0.52自动启动的问题
  相关方案
Google
 

本站最佳浏览方式为 分辨率 1024x768 IE 6.0(或更高版本的 IE浏览器)

go top