1.查看Nginx编译参数
[root@portal finance]# your_nginx_dir/sbin/nginx -V
nginx version: nginx/1.6.0 built by gcc 4.4.7 20120313 (Red Hat 4.4.7-18) (GCC) TLS SNI support enabled configure arguments: --prefix=/usr/local/nginx-1.6.0 --with-http_ssl_module
2.查看PHP编译参数
[root@portal finance]# your_php_dir/bin/php -i | grep configure
Configure Command => './configure' '--prefix=/usr/local/php-7.1.0' '--enable-fpm' '--enable-inline-optimization' '--with-config-file-path=/usr/local/php-7.1.0/lib' '--enable-mbstring' '--with-curl' '--with-gd' '--with-jpeg-dir' '--with-zlib' '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--enable-pcntl' '--enable-mbregex' '--enable-zip' '--with-pcre-regex' '--with-mysql' '--with-mysqli' '--with-openssl'
3.查看Apache编译参数
[root@portal finance]# cat your_apache_dir/build/config.nice
4.查看MySQL编译参数
[root@portal finance]# cat your_mysql_dir/bin/mysqlbug | grep configure # This is set by configure CONFIGURE_LINE="./configure '–prefix=/usr/local/mysql4′ '–sysconfdir=/etc' '–enable-assembler' '–without-debug' '–with-client-ldflags=-all-static' '–with-mysqld-ldflags=-all-static' '–localstatedir=/www/mysql' '–with-big-tables' '–with-low-memory' '–with-extra-charsets=all' '–enable-thread-safe-client' '–with-pthread' '–with-unix-socket-path=/tmp/mysql.sock'"