首页 > 代码库 > Ubuntu编译安装Apache

Ubuntu编译安装Apache

第一步:编译安装依赖包apr,apr-util和pcre

./configure --prefix=

make && make install

 

第二步:编译安装Apache

./configure --prefix=/usr/local/apache2 --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util/ --enable-so --enable-deflate=shared --enable-rewrite=shared --enable-static-support --disable-userdir --with-pcre=/usr/local/pcre

make && make install

Ubuntu编译安装Apache