|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
如果您觉得本篇CentOSLinux教程讲得好,请记得点击右边漂浮的分享程序,把好文章分享给你的小伙伴们!1.检察内核版本下令:
[root@server1Desktop]#cat/proc/version
Linuxversion2.6.32-358.el6.x86_64(mockbuild@c6b8.bsys.dev.centos.org)(gccversion4.4.720120313(RedHat4.4.7-3)(GCC))#1SMPFriFeb2200:31:26UTC2013
[root@server1Desktop]#uname-a
Linuxserver1.org2.6.32-358.el6.x86_64#1SMPFriFeb2200:31:26UTC2013x86_64x86_64x86_64GNU/Linux
[root@server1Desktop]#uname-r
2.6.5-7.244-smp
2.检察Linux版本:
1)登录到办事器实行lsb_release-a,便可列出一切版本信息,比方:
[root@server1Desktop]#lsb_release-a
LSBVersion:core-2.0-noarch:core-3.0-noarch:core-2.0-ia32:core-3.0-ia32:graphics-2.0-ia32:graphics-2.0-noarch:graphics-3.0-ia32:graphics-3.0-noarch
DistributorID:SUSELINUX
Description:SUSELINUXEnterpriseServer9(i586)
Release:9
Codename:n/a
注:这个下令合用于一切的linux,包含Redhat、SuSE、Debian等刊行版。
2)登录到linux实行cat/etc/issue,比方以下:
[root@server1Desktop]#cat/etc/issue
WelcometoSUSELINUXEnterpriseServer9(i586)-Kernel(l).
3)登录到linux实行cat/etc/redhat-release,比方以下:
[root@server1Desktop]#cat/etc/*release*
CentOSrelease6.4(Final)
LSB_VERSION=base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch
cat:/etc/lsb-release.d:Isadirectory
CentOSrelease6.4(Final)
CentOSrelease6.4(Final)
cpe:/o:centos:linux:6:GA
欢迎大家来到仓酷云论坛! |
|