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参数优化介绍
共同学习,写下你的评论
评论加载中...
作者其他优质文章