天天看点

linux查看module安装路径,nginx查看默认安装的模块

想查看下编译安装的nginx默认都带有哪些模块

网上查的答案都是 nginx -V 但是这个命令只能查看自己编译的时候带的参数, nginx自己默认安装的模块看不到

百度搜到一篇正确的文章:

```

https://jingyan.baidu.com/article/454316ab354edcf7a7c03a81.html

```

查看nginx软件包里的auto文件夹里的option文件,带YES的表示默认安装时候自带的模块. 这些模块使用-V是查看不到的.

```

[email protected]:/usr/local/nginx-1.6.3/auto# cat options |grep "YES"

HTTP=YES

HTTP_CACHE=YES

HTTP_CHARSET=YES

HTTP_GZIP=YES

HTTP_SSI=YES

HTTP_ACCESS=YES

HTTP_AUTH_BASIC=YES

HTTP_USERID=YES

HTTP_AUTOINDEX=YES

HTTP_GEO=YES

HTTP_MAP=YES

HTTP_SPLIT_CLIENTS=YES

HTTP_REFERER=YES

HTTP_REWRITE=YES

HTTP_PROXY=YES

HTTP_FASTCGI=YES

HTTP_UWSGI=YES

HTTP_SCGI=YES

HTTP_MEMCACHED=YES

HTTP_LIMIT_CONN=YES

HTTP_LIMIT_REQ=YES

HTTP_EMPTY_GIF=YES

HTTP_BROWSER=YES

HTTP_UPSTREAM_IP_HASH=YES

HTTP_UPSTREAM_LEAST_CONN=YES

HTTP_UPSTREAM_KEEPALIVE=YES

MAIL_POP3=YES

MAIL_IMAP=YES

MAIL_SMTP=YES

--with-rtsig_module) EVENT_RTSIG=YES ;;

--with-select_module) EVENT_SELECT=YES ;;

--with-poll_module) EVENT_POLL=YES ;;

--with-aio_module) EVENT_AIO=YES ;;

--with-file-aio) NGX_FILE_AIO=YES ;;

--with-ipv6) NGX_IPV6=YES ;;

--with-http_ssl_module) HTTP_SSL=YES ;;

--with-http_spdy_module) HTTP_SPDY=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_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 ;;

--with-imap) MAIL=YES ;;

--with-imap_ssl_module) MAIL_SSL=YES ;;

--with-google_perftools_module) NGX_GOOGLE_PERFTOOLS=YES ;;

--with-cpp_test_module) NGX_CPP_TEST=YES ;;

--with-debug) NGX_DEBUG=YES ;;

--with-pcre) USE_PCRE=YES ;;

--with-pcre-jit) PCRE_JIT=YES ;;

--with-md5-asm) MD5_ASM=YES ;;

--with-sha1-asm) SHA1_ASM=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-rtsig) NGX_TEST_BUILD_RTSIG=YES ;;

--test-build-solaris-sendfilev) NGX_TEST_BUILD_SOLARIS_SENDFILEV=YES ;;

```