#查看操作系统cat /etc/redhat-release
#查看tomcat版本sh /root/tomcat_8080/bin/version.sh | grep ‘Server version‘
#查看nginx版本nginx -v
#查看mysql版本mysql --version
#查看redis版本redis-server --version
Centos上查操作系统及中间件版本
原文:https://www.cnblogs.com/lavezhang/p/12916149.html