【问题标题】:Enable http2 on Nginx on Windows在 Windows 上的 Nginx 上启用 http2
【发布时间】:2017-07-03 15:35:29
【问题描述】:

我在 Windows 7 上使用 nginx 版本 1.10.3。我想启用 http2。我在配置文件中添加了以下内容:

 server {
    listen       443 http2 ssl proxy_protocol;
}

当我启动 nginx 服务器时,我收到以下错误:

2017/02/15 14:34:33 [emerg] 8948#6892: the "http2" parameter requires 
ngx_http_v2_module in C:\Develop\Application\nginx-1.10.3/conf/nginx.conf:64

第 64 行与上面指定的行相同。

如何在 Windows 上安装ngx_http_v2_module

【问题讨论】:

  • 官方没有在windows上内置http2模块。如果你必须使用http2,你应该使用Linux。

标签: nginx http2


【解决方案1】:

HTTP2 模块目前仅适用于 Linux nginx-full 构建。

考虑为此目的使用基于 Debian 或 RHEL 的操作系统。

以下命令将帮助您在基于 Debian 的操作系统上安装 nginx-full

apt-get install nginx-full

【讨论】:

    猜你喜欢
    • 2017-11-03
    • 1970-01-01
    • 2016-11-13
    • 2019-03-24
    • 1970-01-01
    • 2019-08-11
    • 2021-07-29
    • 1970-01-01
    • 2016-06-27
    相关资源
    最近更新 更多