查看nginx的编译参数:
[root@localhost ~]# /application/nginx/sbin/nginx -V
nginx version: nginx/1.6.2
built by gcc 4.4.7 20120313 (Red Hat 4.4.7-11) (GCC)
TLS SNI support enabled
configure arguments: --prefix=/application/nginx-1.6.2 --user=nginx --group=nginx --with-http_stub_status_module --with-http_ssl_module --with-http_realip_module
查看apache的编译参数:
[root@teddy ~]# cat /application/apache/build/config.nice
#! /bin/sh
#
# Created by configure
"./configure" \
"--prefix=/application/apache2.2.29" \
"--enable-deflate" \
"--enable-expires" \
"--enable-headers" \
"--enable-modules=most" \
"--with-mpm=worker" \
"--enable-so" \
"--enable-rewrite" \
"$@"
查看MySQL数据库的编译参数
[root@teddy ~]# grep CONFIGURE_LINE /usr/local/mysql/bin/mysqlbug
CONFIGURE_LINE="./configure '--prefix=/usr/local/mysql' '--with-unix-socket-path=/usr/local/mysql/tmp/mysql.sock' '--localstatedir=/usr/local/mysql/data' '--with-mysqld-user=mysql' '--with-charset=gbk' '--with-plugins=partition,innobase' '--with-extra-charsets=complex' '--enable-assembler' '--with-big-tables' '--with-pthread' '--with-readline' '--with-ssl' '--with-embedded-server' '--without-debug' '--with-mysqld-ldflags=-all-static' '--with-client-ldflags=-all-static' '--enable-local-infile'"
`test -n "$CONFIGURE_LINE" && echo "Configure command: $CONFIGURE_LINE"`
查看php编译参数
[root@teddy ~]# /application/php/bin/php -i|grep configure
Configure Command => './configure' '--prefix=/application/php5.3.29' '--with-apxs2=/application/apache/bin/apxs' '--with-mysql=/usr/local/mysql' '--with-xmlrpc' '--with-openssl' '--with-zlib' '--with-freetype-dir' '--with-gd' '--with-jpeg-dir' '--with-png-dir' '--with-iconv-dir=/usr/local/libiconv' '--enable-sockets' '--enable-zend-multibyte' '--enable-soap' '--enable-mbstring' '--enable-static' '--enable-gd-native-ttf' '--with-curl' '--with-xsl' '--enable-ftp' '--with-libxml-dir'
如何获取LAMP,LNMP环境编译参数配置