您的位置:首页 > 运维架构 > Nginx

如何查看已经编译安装好的nginx、apache、php、mysql的编译参数?

2015-11-08 21:43 811 查看
一)、查看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@[b]ryan~]# cat/application/apache/build/config.nice [/b]#查看编译参数
#!/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@[b]ryan~]#/application/apache/bin/apachectl –V [/b]#查看apache版本

三)、查看mysql的编译参数?
[root@[b]ryan~]# grep CONFIGURE_LINE/application/mysql/bin/mysqlbug [/b]
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@[b]ryan ~]# /application/php/bin/php -i|grep configure[/b]
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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: