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

來源:互聯網
上載者:User

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


 

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

[[email protected]~]#/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的編譯參數與版?

 [[email protected]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"\

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

 

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

[[email protected]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的編譯參數?

[[email protected]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的編譯參數?

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.