View Apache version
/usr/sbin/apachectl-v
installation directory, using APACHECTL-V
MySQL version view
Mysql-v
View Linux versions
Lsb_release-a
View Kernel version
1.cat/proc/version 2.uname-a
View PHP version
1.php-v
View Nginx version
Nginx-v
View nginx,apache,mysql,php's compilation parameters under Linux
1, nginx compilation parameters:
#/usr/local/nginx/sbin/nginx-v nginx version:nginx/0.6.32built by gcc 4.1.2 20071124 (Red Hat 4.1.2-42) Configure Argumen TS:--user=www--group=www--prefix=/usr/local/nginx/--with-http_stub_status_module--with-openssl=/usr/local/ Openssl
2, Apache compilation parameters:
# cat/usr/local/apache/build/config.nice #/usr/local/apache/bin/apachectl-v #cat $apachehome $/build/ Config.nice #! /bin/sh# Created by configure "./configure" "--prefix=/usr/local/apache2" "--with-included-apr" "--enable-so" "-- Enable-deflate=shared ""--enable-expires=shared ""--enable-rewrite=shared ""--enable-static-support ""-- Disable-userdir "" [Email protected] "
View Code
3, PHP compilation parameters:
#/usr/local/php/bin/php-i |grep Configure # $PHP $/bin/php-i | grep Configure #/usr/local/php/bin/php-config< C4/>configure Command = './configure ' --prefix=/usr/local/php '--with-apxs2=/usr/local/apache2/bin/ Apxs '--with-config-file-path=/usr/local/php/etc '--with-mysql=/usr/local/mysql '--with-libxml-dir=/usr/local/ Libxml2/bin '--with-gd=/usr/local/gd2 '--with-jpeg-dir '--with-png-dir '--with-bz2 '--with-xmlrpc '-- With-freetype-dir '--with-zlib-dir '
View Code
4. MySQL Compilation parameters:
Cat "/usr/local/mysql/bin/mysqlbug" |grep Configure # This was set by configureconfigure_line= "./configure"--prefix=/usr /local/mysql '--localstatedir=/var/lib/mysql '--with-comment=source '--with-server-suffix=-h863 '-- With-mysqld-user=mysql '--without-debug '--with-big-tables '--WITH-CHARSET=GBK '--with-collation=gbk_chinese_ Ci '--with-extra-charsets=all '--with-pthread '--enable-static '--enable-thread-safe-client '-- With-client-ldflags=-all-static '--with-mysqld-ldflags=-all-static '--enable-assembler '--without-isam '-- Without-innodb '--without-ndb-debug ' "
View Code
View apache,nginx,mysql,linux,php version