查看默认安装模块
[root@lvsweb1 ~]# tar -xaf nginx-1.10.3.tar.gz
[root@lvsweb1 ~]#cd nginx-1.10.3/
[root@lvsweb1 nginx-1.10.3]# ls
auto CHANGES CHANGES.ru conf configure contrib html LICENSE man README src
[root@lvsweb1 nginx-1.10.3]# yum -y install pcre-devel openssl-devel
[root@lvsweb1 nginx-1.10.3]# useradd -s /sbin/nologin nginx
[root@lvsweb1 nginx-1.10.3]# ./configure \
> --prefix=/usr/local/nginx \
> --user=nginx \
> --group=nginx \
> --with-http_ssl_module
[root@lvsweb1 nginx-1.10.3]# cat auto/options | grep YES ----筛选出以及可以安装的包,这个包括自定义安装的
nginx -V命令查看
这种方法只适合查看自己添加的参数、编译时附带的可选模块或三方模块
[root@lvsweb1 nginx-1.10.3]# /usr/local/nginx/sbin/nginx -V
nginx version: nginx/1.10.3
built by gcc 4.8.5 20150623 (Red Hat 4.8.5-16) (GCC)
built with OpenSSL 1.0.2k-fips 26 Jan 2017
TLS SNI support enabled
configure arguments: --prefix=/usr/local/nginx --user=nginx --group=nginx --with-http_ssl_module