方法一centos
# cat /etc/centos-release Centos release 6.8 (Final) # cat /etc/redhat-release Centos release 6.8 (Final)
方法二:ide
# rpm -q centos-release