- sudo ./configure --prefix=/usr/local/apache2 --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util --host=amd64
- make & make install
- cp /usr/local/apache2/conf/httpd.conf /etc/apache2/httpd.conf
- sudo apachectl restart
2、安装apr,apr-util
1
|
cd /usr/local/
|
1 下载apr 和 apr-util最新版
1
2
3
|
wget http:
//apache.fayea.com/apache-mirror//apr/apr-1.5.0.tar.gz
wget http:
//apache.fayea.com/apache-mirror//apr/apr-util-1.5.3.tar.gz
|
2 解压文件
1
2
3
|
tar -zxvf apr-
1.5
.
0
.tar.gz
tar -zxvf aor-util-
1.5
.
3
.tar.gz
|
3 安装apr和apr-util
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
cd apr-
1.5
.
0
./configure --prefix=/usr/local/apr
make
make install
cd ..
cd apr-util-
1.5
.
3
./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr
make
make insatll
|