您的位置:首页 > 其它

LAMP、LNMP环境编译参数查询

2016-09-19 00:43 274 查看
Apache编译参数:
[root@zyl data]# 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" \
"--enable-rewrite" \
"$@"
版本:
[root@zyl data]# /application/apache/bin/apachectl -v
Server version: Apache/2.2.27 (Unix)
Server built:   Aug 22 2016 17:28:28

Nginx编译参数及版本:
[root@zyl ~]# /application/nginx/sbin/nginx -V
nginx version: nginx/1.6.2
built by gcc 4.4.7 20120313 (Red Hat 4.4.7-17) (GCC)
TLS SNI support enabled
configure arguments:
--user=nginx
--group=nginx
--prefix=/application/nginx1.6.2
--with-http_stub_status_module
--with-http_ssl_module

MySQL:
[root@zyl ~]# grep CONFIGURE_LINE /application/mysql/bin/mysqlbug
CONFIGURE_LINE=""
`test -n "$CONFIGURE_LINE"  && echo "Configure command: $CONFIGURE_LINE"`

版本:
[root@zyl ~]# mysql -uroot -p888888
Welcome to the MySQL monitor.Commands end with ; or \g.
Your MySQL connection id is 3
Server version: 5.5.32-log Source distribution

PHP详细的参数:
[root@zyl ~]# /application/php/bin/php -i|grep config
Configure Command =>
'./configure'
'--prefix=/application/php5.3.27'
'--with-mysql=/application/mysql'
'--with-iconv-dir=/usr/local/libiconv'
'--with-freetype-dir' '--with-jpeg-dir'
'--with-png-dir' '--with-zlib'
'--with-libxml-dir=/usr--enable-xml'
'--disable-rpath'
'--enable-safe-mode'
'--enable-bcmath'
'--enable-shmop'
'--enable-sysvsem'
'--enable-inline-optimization'
'--with-curl' '--with-curlwrappers'
'--enable-mbregex' '--enable-fpm'
'--enable-mbstring'
'--with-mcrypt'
'--with-gd'
'--enable-gd-native-ttf'
'--with-openssl'
'--with-mhash'
'--enable-pcntl'
'--enable-sockets'
'--with-xmlrpc'
'--enable-zip'
'--enable-soap'
'--enable-short-tags'
'--enable-zend-multibyte'
'--enable-static'
'--with-xsl'
'--with-fpm-user=nginx'
'--with-fpm-group=nginx'
'--enable-ftp'
PHP Warning:  Unknown: It is not safe to rely on the system's timezone settings.
You are *required* to use the date.timezone setting or the date_default_timezone_set() function.
In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier.
We selected 'Asia/Chongqing' for 'CST/8.0/no DST' instead in Unknown on line 0

版本:
[root@zyl data]#/application/php/bin/php -v
PHP 5.3.27 (cli) (built: Jul  9 2016 20:18:26)
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  参数 LANMP