给Tengine添加模块编译支持http2协议,tenginehttp2
给Tengine添加模块编译支持http2协议,tenginehttp2
1、首先升级openssl包,支持ALPN协议,我使用的是1.0.2o这个版本
https://www.openssl.org/source/ 官网可以下载。
2、安装openssl,下载tag.gz压缩包,解压缩
make & test 测试 make & make install 安装
3、configure nginx
./configure --prefix=/usr/local/nginx --with-http_v2_module --with-openssl=/nginx/openssl-1.0.2o
--with-http_v2_module 加入http2模块
--with-openssl=/nginx/openssl-1.0.2o 使用外部的openssl
./configure --prefix=/usr/local/nginx xxx --with-http_v2_module xxx --with-openssl=/nginx/openssl-1.0.2o
注意XXX的地方,只能有一个空格,多个会报错
4、安装
make & make install
评论暂时关闭