CentOS下查看nginx和php的编译参数

在已经编译安装好的nginx和php的server上是可以查看之前编译时候的参数的,方法如下。

1、查看nginx的编译参数

# nginx -V
nginx version: nginx/1.9.4
built by gcc 4.4.7 20120313 (Red Hat 4.4.7-16) (GCC) 
configure arguments: --prefix=/usr/local/nginx --with-http_realip_module

  

2、查看php的编译参数

# /usr/local/php/bin/php -i |grep configure
Configure Command =>  './configure'  '--prefix=/usr/local/php' '--with-mysql' '--with-freetype-dir=/usr/lib64/libfreetype.so' '--with-config-file-path=/etc' '--enable-ftp' '--enable-inline-optimization' '--enable-mbstring' '--enable-xml' '--with-gd' '--with-gettext' '--with-regex=system' '--with-zlib-dir=/usr/lib64' '--enable-fpm' '--with-jpeg-dir' '--with-fpm-user=root' '--with-mcrypt'

  

猜你喜欢

转载自www.cnblogs.com/achengmu/p/9443111.html