1).获得源码包 httpd-2.0.59.tar.gz 2).确认编译环境 rpm -q gcc 3)进行编译安装 cp httpd-2.0.59.tar.gz /usr/local/src cd /usr/local/src/ tar zxvf httpd-2.0.59.tar.gz ls cd httpd-2.0.59 ./configure --prefix=/usr/local/apache2 --enable-so --enable-rewrite make make install