查看 CentOS 系统的版本 cat /etc/redhat-release #适合RedHat,CentOS rpm -q centos-release #适合所有Linux版本 查看内核版本 uname -a 查看系统的位数 getconf LONG_BIT #方法一 getconf WORD_BIT #方法二 参考链接 https://blog.51cto.com/nameyjj/557424