yum groupinstall "Development Tools"
wget http://www.us.apache.org/dist//apr/apr-1.5.2.tar.gz
wget http://www.us.apache.org/dist//apr/apr-util-1.5.4.tar.gz
wget https://github.com/tatsuhiro-t/nghttp2/releases/download/v1.4.0/nghttp2-1.4.0.tar.gz
wget https://www.openssl.org/source/openssl-1.0.2d.tar.gz
wget http://www.eu.apache.org/dist//httpd/httpd-2.4.18.tar.gz
tar xvf apr-1.5.2.tar.gz
cd apr-1.5.2
./configure
make
make install
cd ..
tar xvf apr-util-1.5.4.tar.gz
cd apr-util-1.5.4
./configure --with-apr=/usr/local/apr/
make
make install
cd ..
tar xvf nghttp2-1.4.0.tar.gz
cd nghttp2-1.4.0
./configure
make
make install
cd ..
tar xvf openssl-1.0.2d.tar.gz
cd openssl-1.0.2d
./config shared
make
make install
yum install pcre-devel zlib-devel libxml2-devel
cd ..
tar xvf httpd-2.4.18.tar.gz
cd httpd-2.4.18.tar.gz
cd httpd-2.4.18
make clean
make distclean
./configure --enable-ssl --enable-so --enable-cache --enable-socache-memcache --enable-watchdog --enable-deflate --enable-proxy-html --enable-http --enable-http2 --disable-log-config --enable-log-debug --enable-log-forensic --enable-mime-magic --enable-expires --enable-remoteip --enable-proxy --enable-proxy-fcgi --enable-dav-fs --enable-vhost-alias --with-nghttp2=/usr/local/lib --enable-log-config --with-ssl=/usr/local/ssl/
make
make install
/usr/local/apache2/bin/apachectl start
ln -s /usr/local/ssl/lib/libcrypto.so.1.0.0 /usr/local/apache2/lib/
ln -s /usr/local/ssl/lib/libssl.so.1.0.0 /usr/local/apache2/lib/
ln -s /usr/local/lib/libnghttp2.so.14 /usr/local/apache2/lib/
留言
張貼留言