日期:2014-05-16  浏览次数:20600 次

Linux下Apache源码安装后的怎么启动?系统提示Bash无法识别apachectl命令
今天刚刚用源码安装了下Apache的Httpd,但是始终无法再bin文件下启动服务,不知道问题出在哪
求大神指点:

#tar -zxvf httpd.tar.gz
#cd httpd
#./configure --prefix=/usr/apache
#make
#make install
#cd /usr/apache/bin
前面都没问题
#apachectl start
执行这条启动服务命令却提示:-bash apachectl: command not found
系统版本redhat 5.0

配置文件/usr/apache/conf/httpd.conf
只是修改了Listen地址为本机地址
------解决方案--------------------
/usr/apache/bin这个路径下有没apachectl?
有的话用./apachectl start

或者,你配下环境变量PATH增加/usr/apache/bin。
------解决方案--------------------
export PATH=/usr/apache/bin:$PATH
------解决方案--------------------
/usr/apache/bin/apachectl start

或者

#cd /usr/apache/bin
前面都没问题
#./apachectl start