注意:
只有源码安装的 Nginx 才能使用此方法
步骤一:Nginx 版本的显示
nginx version: nginx/1.18.0
步骤二:Nginx 版本和已安装模块的显示
# /usr/local/nginx/sbin/nginx -V
nginx version: nginx/1.18.0
built by gcc 8.3.1 20191121 (Red Hat 8.3.1-5) (GCC)
built with OpenSSL 1.1.1g FIPS 21 Apr 2020
TLS SNI support enabled
configure arguments: --prefix=/usr/local/nginx --with-http_ssl_module