nginx,apache,php,mysql編譯參數查看


1.CentOS5.8 x86_64位 採用最小化安裝,系統經過了基本優化篇
2.nginx版本:nginx-1.4.7
3.源碼包存放位置:/home/oldboy/tools
4.源碼包編譯安裝位置:/application/ ,mysql裝在/usr/local/mysql

一.lamp和lanp環境查看編設參數:
   1.nginx查看

[root@ser200 nginx]# sbin/nginx -v
    nginx version: nginx/1.4.7
    [root@ser200 nginx]# sbin/nginx -V
    nginx version: nginx/1.4.7
    built by gcc 4.1.2 20080704 (Red Hat 4.1.2-54)
    TLS SNI support disabled
    configure arguments: --user=nginx --group=nginx --prefix=/application/nginx-1.4.7 --with-http_stub_status_module --with-http_ssl_module

   2.apache

 [root@ser200 nginx]# cat /application/apache/build/config.nice 
    #! /bin/sh
    #
    # Created by configure
    "./configure" \
    "--prefix=/application/apache2.2.29/" \
    "--enable-deflate" \
    "--enable-expires" \
    "--enable-headers" \
    "--enable-modules=most" \
    "--enable-so" \
    "--with-mpm=worker" \
    "--enable-rewrite" \
    "$@"

   3.mysql

  [root@ser200 nginx]# grep CONFIGURE_LINE /usr/local/mysql/bin/mysqlbug

    CONFIGURE_LINE="./configure  '--prefix=/usr/local/mysql' '--with-unix-socket-path=/usr/local/mysql/tmp/mysql.sock' '--localstatedir=/usr/local/mysql/data' '--enable-assembler' '--enable-thread-safe-client' '--with-mysqld-user=mysql' '--with-big-tables' '--without-debug' '--with-pthread' '--with-extra-charsets=complex' '--with-readline' '--with-ssl' '--with-embedded-server' '--enable-local-infile' '--with-plugins=partition,innobase' '--with-plugin-PLUGIN' '--with-mysqld-ldflags=-all-static' '--with-client-ldflags=-all-static'"
    `test -n "$CONFIGURE_LINE"  && echo "Configure command: $CONFIGURE_LINE"`

   4.php

[root@ser200 nginx]#  /application/php/bin/php -i |grep configure

    Configure Command =>  './configure'  '--prefix=/application/php5.3.29' '--with-apxs2=/application/apache/bin/apxs' '--with-mysql=/usr/local/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'
    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

你有可能還需要閱讀:

   1.php和apache編譯安裝方法

   2.高併發網站的apache參數優化介紹

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