码迷,mamicode.com
首页 > 数据库 > 详细

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

时间:2015-11-09 01:48:08      阅读:363      评论:0      收藏:0      [点我收藏+]

标签:如何查看已经编译安装好的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

 

 

 

 

 

 


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

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

原文地址:http://stoneryan.blog.51cto.com/4534150/1710829

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!