1. 下载
到 下载apache的最新稳定版本, 目前是2.2.11, httpd-2.2.11.bz2
2. 解压安装
tar zxvf httpd-2.2.11.tar.bz2
cd httpd-2.2.11
./configure --prefix=/usr/local/httpd --enable-module=so # --enable-module 可以支持php作为apache的动态模块加载
make
make install
cp /usr/local/httpd/bin/apachectl /usr/sbin/httpd
cp /usr/local/httpd/bin/apachectl /etc/rc.d/init.d/httpd
3. 启动
/etc/rc.d/init.d/httpd start
查看apache的编译选项:
cat /usr/local/apache2/build/config.nice
阅读(941) | 评论(0) | 转发(0) |