查看当前Nginx已编译加入的模块及版本

命令:nginx -v(小v)

结果:

nginx version: nginx/1.16.1

命令:nginx -V(大V)

结果:

nginx version: nginx/1.16.1
built by cl 16.00.40219.01 for 80x86
built with OpenSSL 1.1.1c  28 May 2019
TLS SNI support enabled
configure arguments: 
--with-cc=cl 
--builddir=objs.msvc8 
--with-debug 
--prefix= 
--conf-path=conf/nginx.conf 
--pid-path=logs/nginx.pid 
--http-log-path=logs/access.log 
--error-log-path=logs/error.log 
--sbin-path=nginx.exe 
--http-client-body-temp-path=temp/client_body_temp 
--http-proxy-temp-path=temp/proxy_temp 
--http-fastcgi-temp-path=temp/fastcgi_temp 
--http-scgi-temp-path=temp/scgi_temp 
--http-uwsgi-temp-path=temp/uwsgi_temp 
--with-cc-opt=-DFD_SETSIZE=1024 
--with-pcre=objs.msvc8/lib/pcre-8.43 
--with-zlib=objs.msvc8/lib/zlib-1.2.11 
--with-http_v2_module 
--with-http_realip_module 
--with-http_addition_module 
--with-http_sub_module 
--with-http_dav_module 
--with-http_stub_status_module 
--with-http_flv_module 
--with-http_mp4_module 
--with-http_gunzip_module 
--with-http_gzip_static_module 
--with-http_auth_request_module 
--with-http_random_index_module 
--with-http_secure_link_module 
--with-http_slice_module 
--with-mail 
--with-stream 
--with-openssl=objs.msvc8/lib/openssl-1.1.1c 
--with-openssl-opt='no-asm no-tests -D_WIN32_WINNT=0x0501' 
--with-http_ssl_module 
--with-mail_ssl_module 
--with-stream_ssl_module

  • 3
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
查看当前 Nginx 中加载了哪些模块,可以使用 `nginx -V` 命令,该命令会显示 Nginx版本信息,包括编译时的参数和模块列表。 执行以下命令即可查看 Nginx 中加载的模块列表: ``` nginx -V ``` 该命令会输出 Nginx版本信息和编译时的配置参数,其中包括加载的模块列表。例如: ``` nginx version: nginx/1.18.0 built by gcc 9.3.0 (Ubuntu 9.3.0-17ubuntu1~20.04) built with OpenSSL 1.1.1f 31 Mar 2020 TLS SNI support enabled configure arguments: --prefix=/usr/share/nginx --sbin-path=/usr/sbin/nginx --modules-path=/usr/lib/nginx/modules --conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log --pid-path=/run/nginx.pid --lock-path=/var/lock/nginx.lock --http-client-body-temp-path=/var/lib/nginx/body --http-fastcgi-temp-path=/var/lib/nginx/fastcgi --http-proxy-temp-path=/var/lib/nginx/proxy --http-scgi-temp-path=/var/lib/nginx/scgi --http-uwsgi-temp-path=/var/lib/nginx/uwsgi --with-compat --with-file-aio --with-threads --with-http_addition_module --with-http_auth_request_module --with-http_dav_module --with-http_flv_module --with-http_gunzip_module --with-http_gzip_static_module --with-http_mp4_module --with-http_random_index_module --with-http_realip_module --with-http_secure_link_module --with-http_slice_module --with-http_ssl_module --with-http_stub_status_module --with-http_sub_module --with-http_v2_module --with-mail --with-mail_ssl_module --with-stream --with-stream_realip_module --with-stream_ssl_module --with-stream_ssl_preread_module --with-cc-opt='-g -O2 -fdebug-prefix-map=/data/builder/debuild/nginx-1.18.0/debian/debuild-base/nginx-1.18.0=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -Wdate-time -D_FORTIFY_SOURCE=2' --with-ld-opt='-Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,now -fPIC' --add-dynamic-module=/usr/src/ngx_devel_kit-0.3.1 --add-dynamic-module=/usr/src/lua-nginx-module-0.10.15 --add-dynamic-module=/usr/src/nginx-rtmp-module-1.2.1 ``` 在输出中,可以看到 `--add-dynamic-module` 参数后面跟着加载的模块路径和名称,这些即为当前 Nginx 中加载的模块列表。如果没有加载任何模块,则不会出现 `--add-dynamic-module` 参数。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

erizhu

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值