查看apache、linux、kernel、nginx等版本
查看apache版本
/usr/sbin/apachectl -v
httpd -v
安装目录,使用apachectl -v
查看mysql版本
mysql –help | grep Distrib
mysql -V
mysql/bin/mysql -u root -p -e “select version()”
mysql -V
mysql/bin/mysql -u root -p -e “select version()”
/bin mysqladmin version |
查看linux版本
lsb_release -a
head -n1 /etc/issue
cat /etc/redhat-release (redhat)
cat /etc/redhat-release (redhat)
rpm -q redhat-release (redhat)
查看内核版本
cat /proc/version
uname -a
uname -r
uname -r
查看php版本
php -v
phpinfo();
查看nginx版本
nginx -V
Linux下查看nginx,apache,mysql,php的编译参数
1、nginx编译参数:
#/usr/local/nginx/sbin/nginx -V
2、apache编译参数:
# cat /usr/local/apache/build/config.nice
#/usr/local/nginx/sbin/nginx -V
2、apache编译参数:
# cat /usr/local/apache/build/config.nice
#/usr/local/apache/bin/apachectl -V
#cat $apachehome$/build/config.nice
3、php编译参数:
# /usr/local/php/bin/php -i |grep configure
3、php编译参数:
# /usr/local/php/bin/php -i |grep configure
#$PHP$/bin/php -i | grep configure
# /usr/local/php/bin/php-config
4、mysql编译参数:
# cat /usr/local/mysql/bin/mysqlbug|grep configure
4、mysql编译参数:
# cat /usr/local/mysql/bin/mysqlbug|grep configure
5、smartd编译参数:
#/usr/sbin/smartctl -V|grep configure