获取LAMP与LNMP的编译参数

1.查看nginx的编译参数
[root@LNMP ~]# /application/nginx/sbin/nginx -V
nginx version: nginx/1.6.3
built by gcc 4.4.7 20120313 (Red Hat 4.4.7-18) (GCC)
TLS SNI support enabled
configure arguments: --user=nginx --group=nginx
--prefix=/application/nginx-1.6.3/
--with-http_stub_status_module
--with-http_ssl_module

2.查看apache的编译参数
[root@LAMP ~]# cat /application/apache/build/config.nice
#! /bin/sh
#
# Created by configure

"./configure" \
"--prefix=/application/apache2.2.27" \
"--enable-deflate" \
"--enable-expires" \
"--enable-headers" \
"--enable-modules=most" \
"--enable-so" \
"--with-mpm=worker" \
"$@"

3.查看mysql的编译参数
[root@LAMP ~]# grep CONFIGURE_LINE /application/mysql/bin/mysqlbug
CONFIGURE_LINE="./configure
'--prefix=/application/mysql5.1.72' '
--with-unix-socket-path=/application/mysql5.1.72/tmp/mysql.sock' '
--localstatedir=/application/mysql5.1.72/data' '
--enable-thread-safe-client' '
--with-mysqld-user=mysql' '
--with-big-tables' '
--without-debug' '
--with-pthread' '
--enable-assembler' '
--with-extra-charsets=complex' '
--with-readline' '
--with-ssl' '
--with-embedded-server' '
--enable-local-infile' '
--with-plugins=partition,innobase' '
--with-mysqld-ldflags=-all-static' '
--with-client-ldflags=-all-static'"
`test -n "$CONFIGURE_LINE" && echo "Configure command: $CONFIGURE_LINE"`

4.查看php的编译参数
[root@LAMP ~]# /application/php/bin/php -i |grep configure
Configure Command => './configure' '
--prefix=/application/php5.3.27' '
--with-apxs2=/application/apache/bin/apxs' '
--with-mysql=/application/mysql' '
--with-xmlrpc' '
--with-openssl' '
--with-zlib' '
--with-freetype-dir' '
--with-gd' '
--with-jpeg-dir' '
--with-png-dir' '
--with-iconv=/usr/local/libiconv' '
--enable-short-tags' '
--enable-sockets' '
--enable-zend-multibyte' '
--enable-soap' '
--enable-mbstring' '
--enable-static' '
--enable-gd-native-ttf' '
--with-curl' '
--with-xsl' '
--enable-ftp' '
--with-libxml-dir'

说明:/application为各个服务的安装路径

posted @ 2018-05-22 11:23  命由己造~  阅读(143)  评论(0编辑  收藏  举报