[nginx]查看安装了哪些模块

来源:互联网 发布:郑州安然燃气网络缴费 编辑:程序博客网 时间:2024/04/29 13:32

有时候安装的时候不知道哪些模块忘了安装需要查看下已经安装的模块。

查看安装了哪些模块

$ nginx -Vnginx version: nginx/1.4.6 (Ubuntu)built by gcc 4.8.2 (Ubuntu 4.8.2-19ubuntu1) TLS SNI support enabledconfigure arguments: --with-cc-opt='-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2' --with-ld-opt='-Wl,-Bsymbolic-functions -Wl,-z,relro' --prefix=/usr/share/nginx --conf-path=/etc/nginx/nginx.conf --http-log-path=/var/log/nginx/access.log --error-log-path=/var/log/nginx/error.log --lock-path=/var/lock/nginx.lock --pid-path=/run/nginx.pid --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-debug --with-pcre-jit --with-ipv6 --with-http_ssl_module --with-http_stub_status_module --with-http_realip_module --with-http_addition_module --with-http_dav_module --with-http_geoip_module --with-http_gzip_static_module --with-http_image_filter_module --with-http_spdy_module --with-http_sub_module --with-http_xslt_module --with-mail --with-mail_ssl_module

还有一个格式化之后的命令,查看起来方面

$ 2>&1 nginx -V | tr ' '  '\n'|grep ssl--with-http_ssl_module--with-mail_ssl_module

小写v查看简单的版本号信息

$ nginx -vnginx version: nginx/1.4.6 (Ubuntu)

参考: http://serverfault.com/questions/223509/how-can-i-see-which-flags-nginx-was-compiled-with

声明:
本文出自 “orangleliu笔记本” 博客,转载请务必保留此出处http://blog.csdn.net/orangleliu/article/details/43702781
作者orangleliu 采用署名-非商业性使用-相同方式共享协议

0 0
原创粉丝点击