+ -
当前位置:首页 → 问答吧 → 为什么/usr/local/etc/rc.d 下的有apache2.sh 这个文件 可是系统起动时并没有起动 apache 为什么啊

为什么/usr/local/etc/rc.d 下的有apache2.sh 这个文件 可是系统起动时并没有起动 apache 为什么啊

时间:2005-06-28

来源:互联网

为什么/usr/local/etc/rc.d 下的有apache2.sh 这个文件 可是系统起动时并没有起动 apache 为什么啊
当然这文件是安装apache 的时候它自己生成的 而且也是据有可则行权限的啊

作者: hfh   发布时间: 2005-06-28

apache2.sh里面不是写了怎样才能让它在系统启动的时候运行吗.

作者: congli   发布时间: 2005-06-28

在rc.conf中还要加入apache2_enable="YES"

作者: masterdemon   发布时间: 2005-06-28

引用:
作者: congli
apache2.sh里面不是写了怎样才能让它在系统启动的时候运行吗.
不是很明白
你的意思是不是
我要编辑 rc.conf
加入
apache2_enable="YES"

作者: hfh   发布时间: 2005-06-28

引用:
作者: hfh
不是很明白
你的意思是不是
我要编辑 rc.conf
加入
apache2_enable="YES"

cat apache2.sh
代码:
#
# Add the following lines to /etc/rc.conf to enable apache2:
# apache2_enable (bool): Set to "NO" by default.
# Set it to "YES" to enable apache2
# apache2ssl_enable (bool): Set to "NO" by default.
# Set it to "YES" to start apache with SSL 
# (if <IfDefined SSL> exists in httpd.conf)
# apache2limits_enable (bool):Set to "NO" by default.
# Set it to yes to run `limits $limits_args`
# just before apache starts.
# apache2_flags (str): Set to "" by default.
# Extra flags passed to start command.
# apache2limits_args (str): Default to "-e -C daemon"
# Arguments of pre-start limits run.
#

作者: congli   发布时间: 2005-06-28

明白了 谢谢
apache2_flags 是什么意思啊 都要设置flags的 像bind也有的 不知道这个是什么意思
该怎么设置

作者: hfh   发布时间: 2005-06-29