标签:解压 下载 dev usr 1.2 server pre 下载地址 pat
httpd 下载地址:http://httpd.apache.org/download.cgi
yum install gcc -y
yum install gcc-c++ -y
CentOS:
yum install expat-devel
Ubuntu:
apt-get install libexpat1-dev
下载地址:http://apr.apache.org/download.cgi
1)编译安装 apr
./configure
make && make install
2)编译安装 apr-util
./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr
make && make install
1)编译安装 pcre
./configure
make && make install
2)安装 prce-devel
yum install pcre-devel -y
1)将 apr 和 apr-util 解压到 httpd-2.4.33/srclib/ 目录下(去掉版本号):
cp -rf ~/downlaods/apr-1.6.3 ~/downloads/httpd-2.4.33/srclib/apr
cp -rf ~/downloads/apr-util-1.6.1 ~/downloads/httpd-2.4.33/srclib/apr-util
2)编译安装
./configure --prefix=/usr/local/httpd --with-included-apr
make && make install
3)运行
/usr/local/httpd/bin/apachectl start
如果启动 /usr/local/httpd/bin/apachectl,默认使用的配置文件为:/usr/local/httpd/conf/httpd.conf,或者使用 -f 指定配置文件
如果启动 /usr/local/httpd/bin/httpd,默认使用的配置文件为:/etc/httpd/conf/httpd.conf
标签:解压 下载 dev usr 1.2 server pre 下载地址 pat
原文地址:https://www.cnblogs.com/tangxuliang/p/9157552.html