新的线上环境尝尝是已经配置好的,我们在进行故障分析、服务调优、甚至是服务器迁移的时候,要仔细查看环境编译参数,避免操作失误影响业务运行...
1)Nginx服务编译参数
[root@db02 ~]# /application/nginx/sbin/nginx -vnginx version: nginx/1.6.3
[root@db02 ~]# /application/nginx/sbin/nginx -V
nginx version: nginx/1.6.3
built by gcc 4.4.7 20120313 (Red Hat 4.4.7-16) (GCC)
TLS SNI support enabled
configure arguments: --user=www --group=www --with-http_ssl_module --with-http_stub_status_module --prefix=/application/nginx-1.6.3/
[root@cache ~]# cat /application/apache/build/config.nice
#! /bin/sh
#
# Created by configure
2)Apache服务编译参数
[root@cache ~]# cat /application/apache/build/config.nice"./configure" \"--prefix=/application/apache2.2.31" \"--enable-deflate" \"--enable-expires" \"--enable-headers" \"--enable-modules=most" \"--enable-so" \"--with-mpm=worker" \"--enable-rewrite" \"$@"
3)MySQL服务编译参数
[root@db02 ~]# grep CONFIGURE_LINE /application/mysql/bin/mysqlbug CONFIGURE_LINE=""`test -n "$CONFIGURE_LINE" && echo "Configure command: $CONFIGURE_LINE"`#这里由于我们使用的二进制安装包,非本地编译
4)PHP服务编译参数
[root@db02 ~]# /application/php/bin/php -i|grep configureConfigure Command => './configure' '--prefix=/application/php5.5.32' '--enable-mysqlnd' '--with-pdo-mysql=mysqlnd' '--with-mysqli=mysqlnd' '--with-iconv-dir=/usr/local/libiconv' '--with-freetype-dir' '--with-jpeg-dir' '--with-png-dir' '--with-zlib' '--with-libxml-dir=/usr' '--enable-xml' '--disable-rpath' '--enable-bcmath' '--enable-shmop' '--enable-sysvsem' '--enable-inline-optimization' '--with-curl' '--enable-mbregex' '--enable-fpm' '--enable-mbstring' '--with-gd' '--with-mcrypt' '--enable-gd-native-ttf' '--with-openssl' '--with-mhash' '--enable-pcntl' '--enable-sockets' '--with-xmlrpc' '--enable-zip' '--enable-soap' '--enable-short-tags' '--enable-static' '--with-xsl' '--with-fpm-user=www' '--with-fpm-group=www' '--enable-ftp' '--enable-opcache=no'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 the timezone 'UTC' for now, but please set date.timezone to select your timezone. in Unknown on line 0