查看apache版本php
/usr/sbin/apachectl -vmysql
httpd -vlinux
安裝目錄,使用apachectl -vnginx
查看mysql版本 sql
mysql –help | grep Distrib
mysql -V
mysql/bin/mysql -u root -p -e 「select version()」apache
/bin mysqladmin version |
查看linux版本ide
lsb_release -aui
head -n1 /etc/issue
cat /etc/redhat-release (redhat)spa
rpm -q redhat-release (redhat)orm
查看內核版本
cat /proc/version
uname -a
uname -r
查看php版本
php -v
phpinfo();
查看nginx版本
nginx -V
Linux下查看nginx,apache,mysql,php的編譯參數
一、nginx編譯參數:
#/usr/local/nginx/sbin/nginx -V
二、apache編譯參數:
# cat /usr/local/apache/build/config.nice
#/usr/local/apache/bin/apachectl -V
#cat $apachehome$/build/config.nice
三、php編譯參數:
# /usr/local/php/bin/php -i |grep configure
#$PHP$/bin/php -i | grep configure
# /usr/local/php/bin/php-config
四、mysql編譯參數:
# cat /usr/local/mysql/bin/mysqlbug|grep configure
五、smartd編譯參數:
#/usr/sbin/smartctl -V|grep configure