nginx: [emerg] the "http2" parameter requires ngx_http_v2_module in /opt/nginx-1.9.12/conf/nginx.conf:48
➜ www nginx -v
nginx version: nginx/1.9.12
➜ www nginx -v
nginx version: nginx/1.9.12
|
1
http://nginx.org/en/docs/http/ngx_http_v2_module.html
This module is not built by default, it should be enabled with the --with-http_v2_module configuration parameter. 默认没有这个模块,需要在构建 nginx 的时候加参数。 |
|
emricMar 10, 2016
2
https://www.nginx.com/blog/nginx-1-9-5
更新到 1.9.5 以上吧。 |
|
3
|
|
4
@kawaiiushio 这。。我只看了标题 →_→
|
|
5
没编译= =
|
|
maemualMar 10, 2016
6
话说你是怎么装的,自己编译安装的么?建议通过 Nginx 维护的官方源安装。
|
|
7
直接使用官方源安装的 1.9.x ,可以开启 HTTP2 无问题。
|
|
8
没必要自己编译啊
echo 'deb http://nginx.org/packages/mainline/ubuntu/ trusty nginx' >> /etc/apt/sources.list echo 'deb-src http://nginx.org/packages/mainline/ubuntu/ trusty nginx' >> /etc/apt/sources.list curl http://nginx.org/keys/nginx_signing.key | apt-key add - apt-get update && apt-get install -y nginx |
|
9
Chrome 只支持 SSL 的 HTTP2 。查看方式: chrome://net-internals/#http2
|
|
10
|