标签:configure apr-util sha ges es2017 -shared 编译安装 figure nss
在安装之前首先把开发包组安装。
[root@tiandong63 ~]# yum groupinstall "Development Tools" "Development Libraries" -y
[root@tiandong63 ~]# yum install gcc gcc-c++ openssl-devel -y
上传需要的安装包:
[root@tiandong63 ~]# tar -xf apr-1.5.2.tar.gz -C /usr/local/src/
[root@tiandong63 ~]# cd /usr/local/src/apr-1.5.2/
[root@tiandong63 apr-1.5.2]# ./configure --prefix=/usr/local/apr && make -j 2 && make install
[root@tiandong63 ~]#tar -xf apr-util-1.5.4.tar.bz2 -C /usr/local/src/
[root@tiandong63 ~]#cd /usr/local/src/apr-util-1.5.4/
[root@tiandong63 apr-util-1.5.4]# ./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr && make -j 2 && make install
[root@tiandong63 ~]tar -xf pcre-8.37.tar.bz2 -C /usr/local/src/
[root@tiandong63 ~]cd /usr/local/src/pcre-8.37/
[root@tiandong63 pcre-8.37]# ./configure --prefix=/usr/local/pcre && make -j 2 && make install
基础环境安装完成,下面编译安装apache。
[root@tiandong63 ~]# tar -xf httpd-2.4.16.tar.bz2 -C /usr/local/src/
[root@tiandong63 ~]# cd /usr/local/src/httpd-2.4.16/
[root@tiandong63 httpd-2.4.16]# ./configure --prefix=/usr/local/apache2.4 --enable-so --enable-rewrite --enable-ssl --with-pcre=/usr/local/pcre --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util --enable-modules=most --enable-mpms-shared=all --with-mpm=event && make -j 2 && make install
一些参数的解释:
--prefix=/usr/local/apache2.4 安装路径
--enable-so 支持动态加载模块
--enable-rewrite 支持网站地址重写
--enable-ssl 支持ssl加密
--with-pcre=/usr/local/pcre pcre路径
--with-apr=/usr/local/apr apr路径
--with-apr-util=/usr/local/apr-util apr-util路径
--enable-modules=most
--enable-mpms-shared=all
--with-mpm=event
配置Apache启动脚本
标签:configure apr-util sha ges es2017 -shared 编译安装 figure nss
原文地址:http://www.cnblogs.com/winter1519/p/7512318.html