1、先安装apr、apr-util、pcre、openssl
安装apr
tar zxvf apr-***.tar.gz cd apr-***/ ./configure --prefix=/usr/local/apr make && make install
安装apr-util
tar zxvf apr-util-***.tar.gz cd apr-util-***/ ./configure --prefix=/usr/local/apr-util make && make install
安装pcre
tar zxvf pcre-***.tar.gz cd pcre-***/ ./configure --prefix=/usr/local/pcre make && make install
安装openssl
tar zxvf openssl-***.tar.gz cd openssl-***/ ./config --prefix=/usr/local/openssl -fPIC enable-shared make && make install
2、安装Apache
tar zxvf httpd-2.4.10.tar.gz cd httpd-2.4.10/ ./configure --prefix=/usr/local/apache --enable-so --enable-cgi --enable-rewrite --with-ssl=/usr/local/openssl --enable-ssl --with-zlib --with-pcre=/usr/local/pcre --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util --enable-mpms-shared=all --with-mpm=event make && make install
时间: 2024-12-29 05:51:07