Linux 安装apache

安装
cd  httpd-2.0.35.tar.gz所在的目录
tar -zxvf httpd-2.0.35.tar.gz
cd httpd-2.0.35
./configure  --prefix=/usr/local/apache2    --enable-so    --enable-rewrite    --enable-mime   --enable-headers
make
make install

prefix表示安装的目录,enable表示安装的模块,可以增加更多的模块。

启动和停止
/usr/local/apache2/bin/apachectl start
/usr/local/apache2/bin/apachectl stop

redhat 9.0 , apache2.0.35 测试通过。
posted @ 2007-07-20 14:30  摇滚的石头  阅读(102)  评论(0编辑  收藏  举报