Linux下查看nginx apache mysql php的编译参数

快速查看服务器软件的编译参数:
1、nginx编译参数:
your_nginx_dir/sbin/nginx -v
2、apache编译参数:
cat your_apache_dir/build/config.nice
3、php编译参数:
your_php_dir/bin/php -i |grep configure
4、mysql编译参数:
cat your_mysql_dir/bin/mysqlbug |grep configure


以下是完整的实操例子:

查看获取nginx的编译参数:

复制代码 代码如下:

[root@www ~]# /usr/local/nginx/sbin/nginx -V
nginx: nginx version: nginx/1.0.8
nginx: built by gcc 4.3.2 (Debian 4.3.2-1.1)
nginx: configure arguments: �Cuser=www-data �Cgroup=www-data �Cprefix=/usr/local/nginx �Cwith-http_stub_status_module �Cwith-http_gzip_static_module

查看获取apache的编译参数:

复制代码 代码如下:

[root@www ~]# cat /usr/local/apache2/build/config.nice
#! /bin/sh
#
# Created by configure
"./configure" \
"�Cprefix=/usr/local/apache2″ \
"�Cenable-so" \
"�Cenable-modules=all" \
"�Cenable-mods-shared=all" \
"�Cenable-layout=Apache" \
"�Cenable-ssl=static" \
"�Cwith-ssl=/usr/local/openssl" \
"�Cenable-rewrite" \
"�Cenable-suexec" \
"�Cwith-suexec-logfile=/www/logs/suexec.log" \
"�Cwith-suexec-uidmin=500″ \
"�Cwith-suexec-gidmin=100″ \
"�Cwith-suexec-caller=nobody" \
"�Cwith-suexec-docroot=/www" \

查看获取mysql的编译参数:

复制代码 代码如下:
[root@www ~]# grep configure /usr/local/mysql/bin/mysqlbug
# This is set by configure
CONFIGURE_LINE="./configure '�Cprefix=/usr/local/mysql4′ '�Csysconfdir=/etc' '�Cenable-assembler' '�Cwithout-debug' '�Cwith-client-ldflags=-all-static' '�Cwith-mysqld-ldflags=-all-static' '�Clocalstatedir=/www/mysql' '�Cwith-big-tables' '�Cwith-low-memory' '�Cwith-extra-charsets=all' '�Cenable-thread-safe-client' '�Cwith-pthread' '�Cwith-unix-socket-path=/tmp/mysql.sock'"

参看获取php的编译参数:

复制代码 代码如下:

[root@www ~]# /usr/local/php5/bin/php -i |grep configure
Configure Command => './configure' '�Cprefix=/usr/local/php5′ '�Cenable-exif' '�Cenable-mbstring' '�Cwith-iconv' '�Cwith-curl=/usr' '�Cwith-gdbm' '�Cwith-gettext' '�Cenable-calendar' '�Cenable-magic-quotes' '�Cenable-wddx' '�Cenable-ftp' '�Cenable-inline-optimization' '�Cwith-gd=/usr/local' '�Cwith-zlib' '�Cenable-gd-native-ttf' '�Cwith-t1lib=/usr/local' '�Cwith-zlib-dir=/usr' '�Cwith-ttf' '�Cwith-freetype-dir=/usr' '�Cwith-gd' '�Cwith-png-dir=/usr' '�Cwith-jpeg-dir=/usr' '�Cwith-mysql=/usr/local/mysql4′ '�Cenable-force-cgi-redirect' '�Cwith-apxs2=/usr/local/apache2/bin/apxs' '�Cwith-pdo-mysql=/usr/local/mysql4′ '�Cenable-sockets' '�Cwith-openssl=/usr/local/openssl'

你可能感兴趣的:(Linux下查看nginx apache mysql php的编译参数)