发表于 2018-11-22 09:05:35

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查看

# sbin/nginx -v
    nginx version: nginx/1.4.7
    # 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

# 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

# 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

#/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参数优化介绍



页: [1]
查看完整版本: nginx,apache,php,mysql编译参数查看