前言:
当前看官们对“查看nginx模块”大体比较关注,小伙伴们都需要了解一些“查看nginx模块”的相关资讯。那么小编也在网摘上汇集了一些对于“查看nginx模块””的相关知识,希望兄弟们能喜欢,我们一起来学习一下吧!nginx -V 只能查看自己编译的时候带的参数,nginx本身默认安装的模块看不到。刚好最近接手的一个项目就这种,所谓的交接资料,很多情况都需要自己去摸索。
nginx -V 查看
# /usr/local/nginx/sbin/nginx -Vnginx version: nginx/1.14.1built by gcc 4.8.5 20150623 (Red Hat 4.8.5-28) (GCC) built with OpenSSL 1.0.2k-fips 26 Jan 2017TLS SNI support enabledconfigure arguments: --with-http_gzip_static_module --with-http_ssl_module源码文件查看
当时安装时候的源码包仍是保留着,所以我们可查看nginx源码包里auto文件夹下的option文件,带YES的表示默认安装时候自带的模块 。
# cd nginx-1.14.1/auto/# cat options | grep "YES"HTTP=YESHTTP_CACHE=YESHTTP_CHARSET=YESHTTP_GZIP=YESHTTP_SSI=YESHTTP_ACCESS=YESHTTP_AUTH_BASIC=YESHTTP_MIRROR=YESHTTP_USERID=YESHTTP_AUTOINDEX=YESHTTP_GEO=YESHTTP_MAP=YESHTTP_SPLIT_CLIENTS=YESHTTP_REFERER=YESHTTP_REWRITE=YESHTTP_PROXY=YESHTTP_FASTCGI=YESHTTP_UWSGI=YESHTTP_SCGI=YESHTTP_GRPC=YESHTTP_MEMCACHED=YESHTTP_LIMIT_CONN=YESHTTP_LIMIT_REQ=YESHTTP_EMPTY_GIF=YESHTTP_BROWSER=YESHTTP_UPSTREAM_HASH=YESHTTP_UPSTREAM_IP_HASH=YESHTTP_UPSTREAM_LEAST_CONN=YESHTTP_UPSTREAM_KEEPALIVE=YESHTTP_UPSTREAM_ZONE=YESMAIL_POP3=YESMAIL_IMAP=YESMAIL_SMTP=YESSTREAM_LIMIT_CONN=YESSTREAM_ACCESS=YESSTREAM_GEO=YESSTREAM_MAP=YESSTREAM_SPLIT_CLIENTS=YESSTREAM_RETURN=YESSTREAM_UPSTREAM_HASH=YESSTREAM_UPSTREAM_LEAST_CONN=YESSTREAM_UPSTREAM_ZONE=YES --with-select_module) EVENT_SELECT=YES ;; --with-poll_module) EVENT_POLL=YES ;; --with-threads) USE_THREADS=YES ;; --with-file-aio) NGX_FILE_AIO=YES ;; --with-http_ssl_module) HTTP_SSL=YES ;; --with-http_v2_module) HTTP_V2=YES ;; --with-http_realip_module) HTTP_REALIP=YES ;; --with-http_addition_module) HTTP_ADDITION=YES ;; --with-http_xslt_module) HTTP_XSLT=YES ;; --with-http_image_filter_module) HTTP_IMAGE_FILTER=YES ;; --with-http_geoip_module) HTTP_GEOIP=YES ;; --with-http_sub_module) HTTP_SUB=YES ;; --with-http_dav_module) HTTP_DAV=YES ;; --with-http_flv_module) HTTP_FLV=YES ;; --with-http_mp4_module) HTTP_MP4=YES ;; --with-http_gunzip_module) HTTP_GUNZIP=YES ;; --with-http_gzip_static_module) HTTP_GZIP_STATIC=YES ;; --with-http_auth_request_module) HTTP_AUTH_REQUEST=YES ;; --with-http_random_index_module) HTTP_RANDOM_INDEX=YES ;; --with-http_secure_link_module) HTTP_SECURE_LINK=YES ;; --with-http_degradation_module) HTTP_DEGRADATION=YES ;; --with-http_slice_module) HTTP_SLICE=YES ;; --with-http_perl_module) HTTP_PERL=YES ;; --with-http_stub_status_module) HTTP_STUB_STATUS=YES ;; --with-mail) MAIL=YES ;; --with-mail_ssl_module) MAIL_SSL=YES ;; MAIL=YES MAIL_SSL=YES --with-stream) STREAM=YES ;; --with-stream_ssl_module) STREAM_SSL=YES ;; --with-stream_realip_module) STREAM_REALIP=YES ;; --with-stream_geoip_module) STREAM_GEOIP=YES ;; STREAM_SSL_PREREAD=YES ;; --with-google_perftools_module) NGX_GOOGLE_PERFTOOLS=YES ;; --with-cpp_test_module) NGX_CPP_TEST=YES ;; --with-compat) NGX_COMPAT=YES ;; --with-debug) NGX_DEBUG=YES ;; --with-pcre) USE_PCRE=YES ;; --with-pcre-jit) PCRE_JIT=YES ;; --with-libatomic) NGX_LIBATOMIC=YES ;; --test-build-devpoll) NGX_TEST_BUILD_DEVPOLL=YES ;; --test-build-eventport) NGX_TEST_BUILD_EVENTPORT=YES ;; --test-build-epoll) NGX_TEST_BUILD_EPOLL=YES ;; --test-build-solaris-sendfilev) NGX_TEST_BUILD_SOLARIS_SENDFILEV=YES ;;
版权声明:
本站文章均来自互联网搜集,如有侵犯您的权益,请联系我们删除,谢谢。
标签: #查看nginx模块 #检测nginx安装成功 #nginx查询模块 #怎么看是否安装nginx #nginx下面auto目录