摘要:CentOs查看系统版本的几种方法方法1命令:lsb_release -a示例:123456[root@www ~]# lsb_release -aLSB Version: :base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-no
CentOs查看系统版本的几种方法方法1命令:lsb_release -a示例:123456[root@www ~]# lsb_release -aLSB Version: :base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarchDistributor ID: CentOSDescription: CentOS release 6.7 (Final)Release: 6.7Codename: Final方法2命令:unameuname -runame -a //最全的(适用于所有的linux,包括Redhat、SuSE、Debian、Centos等)示例:123456[root@www ~]# unameLinux[root@www ~]# uname -r2.6.32-431.23.3.el6.x86_64[root@www ~]# uname -aLinux www 2.6.32-431.23.3.el6.x86_64 #1 SMP Thu Jul 31 17:20:51 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux方法3命令:cat /etc/redhat-release(适用于RedHat,CentOS)示例:12[root@www ~]# cat /etc/redhat-releaseCentOS release 6.7 (Final)方法4命令:rpm -q redhat-releaserpm -q centos-release(适用于RedHat,CentOS)示例:(我没装redhat,装的是CentOs)1234[root@www ~]# cat /etc/redhat-releasepackage redhat-release is not installed[root@www ~]# rpm -q centos-releasecentos-release-6-7.el6.centos.12.3.x86_64方法5命令:cat /proc/version(当前centos 版本与redhat对应的版本的命令)示例:12[root@www ~]# cat /proc/versionLinux version 2.6.32-431.23.3.el6.x86_64 (mockbuild@c6b8.bsys.dev.centos.org) (gcc version 4.4.7 20120313 (Red Hat 4.4.7-4) (GCC) ) #1 SMP Thu Jul 31 17:20:51 UTC 2014
相关文章推荐
虚拟主机的专业参数,分别都是什么意思?2022-09-09
中非域名注册规则是怎样的?注册域名有什么用处? 2022-01-10
HostEase新年活动促销 美国/香港主机全场低至五折2021-12-28
HostGator下载完整备份教程分享2021-12-28
Flink中有界数据与无界数据的示例分析2021-12-28