the5fire

关注Python、Django、Vim、Linux、Web开发、团队管理和互联网--Life is short, we need Python.


重新编译OpenResty支持http2

作者:the5fire | 标签:       | 发布:2017-01-12 6:23 a.m. | 阅读量: 9096, 8325

把主机迁到ConoHa上之后用上了OpenResty,想着以后直接前端加+Lua+数据库也能搞一个项目出来。今天在用HTTP2 and SPDY插件看是否为http2访问时突然不是。于是查了下发现是openssl版本太低了,于是升级了下。列出命令:

cd /opt/
wget https://www.openssl.org/source/openssl-1.0.2-latest.tar.gz
tar -xvf openssl-1.0.2-laest.tar.gz

# 重新编译openresty
cd /opt/openresty/
./configure --prefix=/opt/openresty --with-luajit             --without-http_redis2_module             --with-http_iconv_module --with-http_v2_module --with-openssl=/opt/openssl-1.0.2j
# 完成之后直接gmake && gmake install(或者make && make install)
# 运行中的nginx不需要关掉,安装完之后先stop然后再重启即可。

nginx stop

nginx -c conf
- from the5fire.com
----EOF-----

微信公众号:Python程序员杂谈


其他分类: