@
yyx007 编译 openssl 我这是安装到 /usr/local/lib_http2
wget
http://openssl.org/source/openssl-1.0.2d.tar.gztar xzf openssl-1.0.2d.tar.gz
cd openssl-1.0.2d
./config --prefix=/usr/local/lib_http2 no-ssl2 no-ssl3 zlib-dynamic
make depend
make install
编译 Apache ,默认的 "--with-ssl=/usr" \ 改为
"--enable-http2" \
"--enable-ssl-staticlib-deps" \
"--with-ssl=/usr/local/lib_http2" \
然后修改 httpd.conf
echo 'ProtocolsHonorOrder On' >> /etc/httpd/conf/extra/httpd-includes.conf
echo 'Protocols h2 h2c http/1.1' >> /etc/httpd/conf/extra/httpd-includes.conf