如何查看已經編譯安裝好的nginx、apache、php、mysql的編譯參數?


 

一)、查看nginx的編譯參數與版?

[root@ryan~]#/application/nginx/sbin/nginx -V

nginx version: nginx/1.8.0

built by gcc 4.4.720120313 (Red Hat 4.4.7-4) (GCC)

built with OpenSSL1.0.1e-fips 11 Feb 2013

TLS SNI support enabled

configure arguments: --prefix=/application/nginx1.8.0 --user=nginx --group=nginx--with-http_stub_status_module --with-http_ssl_module

 

二)、查看apache的編譯參數與版?

 [root@ryan~]# cat/application/apache/build/config.nice #查看編譯參數

#!/bin/sh

#

#Created by configure

"./configure"\

"--prefix=/application/apache2.2.31"\

"--enable-deflate"\

"--enable-expires"\

"--enable-headers"\

"--enable-modules=most"\

"--enable-so"\

"--with-mpm=worker"\

"--enable-rewrite"\

[root@ryan~]#/application/apache/bin/apachectl –V #查看apache版本

 

三)、查看mysql的編譯參數?

[root@ryan~]# 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"`

 

 

 

 

四)、查看php的編譯參數?

[root@ryan ~]# /application/php/bin/php -i|grep configure

ConfigureCommand =>  './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'

PHPWarning:  Unknown: It is not safe to relyon the system's timezone settings. You are *required* to use the date.timezonesetting or the date_default_timezone_set() function. In case you used any ofthose methods and you are still getting this warning, you most likelymisspelled the timezone identifier. We selected 'Asia/Chongqing' for'CST/8.0/no DST' instead in Unknown on line 0

 

 


 

 


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章