如何查看已经编译安装好的nginx、apache、php、mysql的编译参数?
2015-11-08 21:43
811 查看
一)、查看nginx的编译参数与版?
[root@ryan~]#/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的编译参数与版?
[root@[b]ryan~]# cat/application/apache/build/config.nice [/b]#查看编译参数
#!/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"\
[root@[b]ryan~]#/application/apache/bin/apachectl –V [/b]#查看apache版本
三)、查看mysql的编译参数?
[root@[b]ryan~]# grep CONFIGURE_LINE/application/mysql/bin/mysqlbug [/b]
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的编译参数?
[root@[b]ryan ~]# /application/php/bin/php -i|grep configure[/b]
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
[root@ryan~]#/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的编译参数与版?
[root@[b]ryan~]# cat/application/apache/build/config.nice [/b]#查看编译参数
#!/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"\
[root@[b]ryan~]#/application/apache/bin/apachectl –V [/b]#查看apache版本
三)、查看mysql的编译参数?
[root@[b]ryan~]# grep CONFIGURE_LINE/application/mysql/bin/mysqlbug [/b]
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的编译参数?
[root@[b]ryan ~]# /application/php/bin/php -i|grep configure[/b]
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的编译参数?
- 了解 Nginx 的 7 个原因(转)
- PHP 下nginx 配置
- Nginx的使用入门
- Centos7安装nginx
- linux下安装nginx
- nginx配置ssl
- Nginx负载均衡配置实例详解
- nginx和lua开发二
- Ubuntu下搭建Nginx+Uwsgi+Python+Mysql开发环境
- 【Nginx】启动过程
- Nginx配置文件nginx.conf中文详解
- Nginx yum源
- mac osx使用80端口(使用nginx解决)
- nginx 负载均衡
- Nginx 配置指令的执行顺序
- Xen基于ISCSI共享实现Nginx实时迁移
- nginx服务器的网站权限问题
- nginx与PHP的flush(摘抄加总结)
- 烂泥:haproxy与nginx、zabbix集成