如何验证 Nginx 是否安装了 ngx_http_v2_module 模块
要验证 Nginx 是否安装了 'ngx_http_v2_module' 模块,请按照以下步骤:
-
进入 Nginx 安装目录,通常情况下为 '/usr/local/nginx/'。
-
执行命令:'./nginx -V'。
-
查找输出结果中是否包含 '--with-http_v2_module',如果有,则表示已安装 'ngx_http_v2_module' 模块。
例如,输出结果中包含以下内容:
--with-http_v2_module
--with-http_ssl_module
则表示已安装 'ngx_http_v2_module' 模块。
另外,您还可以在 Nginx 配置文件中查看是否已启用该模块。在 'nginx.conf' 文件中,找到以下行:
http {
...
}
在该行下方,如果有以下配置:
http {
...
server {
listen 443 ssl http2;
...
}
}
则表示已启用 'ngx_http_v2_module' 模块。
原文地址: https://www.cveoy.top/t/topic/nz7K 著作权归作者所有。请勿转载和采集!