Apache安装


Apache安装

首先安装apr,apr-util,apr-iconv,prce,这几个依赖包能提高生产力

apr

wget https://downloads.apache.org//apr/apr-1.7.0.tar.gz
tar -zxvf apr-1.7.0.tar.gz
cd apr-1.7.0
./configure --prefix=/usr/local/apr
make 
sudo make install

apr-util

wget https://downloads.apache.org/apr/apr-util-1.6.1.tar.gz
tar -zxvf apr-util-1.6.1.tar.gz
cd apr-util-1.6.1
./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr
make 
sudo make install

apr-iconv

wget https://downloads.apache.org/apr/apr-iconv-1.2.2.tar.gz
tar -zxvf apr-iconv-1.2.2.tar.gz
cd apr-iconv-1.2.2
./configure --prefix=/usr/local/apr-iconv --with-apr=/usr/local/apr
make 
sudo make install

prce

wget https://sourceforge.net/projects/pcre/files/pcre/8.44/pcre-8.44.tar.gz
tar -zxvf pcre-8.44.tar.gz
cd pcre-8.44
./configure --prefix=/usr/local/pcre
make
sudo make install

apache

wget https://apache.mirror.digitalpacific.com.au//httpd/httpd-2.4.48.tar.gz
tar -zxvf httpd-2.4.48.tar.gz
cd httpd-2.4.48
./configure --prefix=/usr/local/httpd --with-apr=/usr/local/apr/apr --with-apr-util=/usr/local/apr/util --with-pcre=/usr/local/pcre
make
sudo make install

文章作者: 0xdadream
版权声明: 本博客所有文章除特別声明外,均采用 CC BY 4.0 许可协议。转载请注明来源 0xdadream !
评论
  目录