惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

H
Help Net Security
博客园 - Franky
GbyAI
GbyAI
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
爱范儿
爱范儿
IT之家
IT之家
酷 壳 – CoolShell
酷 壳 – CoolShell
aimingoo的专栏
aimingoo的专栏
博客园_首页
MongoDB | Blog
MongoDB | Blog
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
Recent Announcements
Recent Announcements
Scott Helme
Scott Helme
有赞技术团队
有赞技术团队
M
MIT News - Artificial intelligence
C
CERT Recently Published Vulnerability Notes
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
Jina AI
Jina AI
F
Fortinet All Blogs
N
Netflix TechBlog - Medium
L
LangChain Blog
L
LINUX DO - 最新话题
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
H
Hacker News: Front Page
MyScale Blog
MyScale Blog
P
Palo Alto Networks Blog
G
Google Developers Blog
Google DeepMind News
Google DeepMind News
AI
AI
T
Troy Hunt's Blog
Microsoft Azure Blog
Microsoft Azure Blog
阮一峰的网络日志
阮一峰的网络日志
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
Vercel News
Vercel News
Microsoft Security Blog
Microsoft Security Blog
罗磊的独立博客
S
Secure Thoughts
大猫的无限游戏
大猫的无限游戏
博客园 - 叶小钗
人人都是产品经理
人人都是产品经理
Blog — PlanetScale
Blog — PlanetScale
博客园 - 司徒正美
Apple Machine Learning Research
Apple Machine Learning Research
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
博客园 - 三生石上(FineUI控件)
S
Security @ Cisco Blogs
Cloudbric
Cloudbric
E
Exploit-DB.com RSS Feed
Attack and Defense Labs
Attack and Defense Labs

博客园 - Eric Zhang

基于jQuery 的几个Dialog应用 mod_rewrite 做好PM的几个要素 Sql Server中清空所有数据表中的记录 SQL Server 2000卸载后重新安装的问题 “无任何网络提供程序接受指定的网络路径”问题的几个解决方法 Serv-U和win2003防火墙的设置 在windowsxp系统内删除linux系统分区后出现grub error 22系统无法启动的解决办法 windows下恢复删除的逻辑分区 c#接口和抽象类的区别 URLRewrite在IIS6和IIS7中的使用配置 Linux 下Apache和Resin的安装 SQL Server 2005 查询处理器未能为执行并行查询启动必要的线程资源。 通过事务日志恢复SqlServer数据库到一个特定的时间点 ASP调用存储过程返回了一个参数和一个记录集时出现ADODB.Recordset 错误 '800a0e78' 如何查看SQL Server 2005版本号 VS2005发布网站时生成的DLL名称问题 设置双网卡的双网关 asp出现的问题 Microsoft JET Database Engine 错误 '80004005'
查看linux版本
Eric Zhang · 2009-06-02 · via 博客园 - Eric Zhang

1. 查看内核版本命令:

1) [root@www ~]# cat /proc/version
   Linux version 2.6.9-22.ELsmp (bhcompile@crowe.devel.redhat.com) (gcc version 3.4.4 20050721

  3.4.4-2)) #1 SMP Mon Sep 19 18:00:54 EDT 2005 

2) [root@www ~]# uname -a
   Linux www 2.6.9-22.ELsmp #1 SMP Mon Sep 19 18:00:54 EDT 2005 x86_64 x86_64 x86_64 GNU/Linux 

3) [root@www ~]# uname -r
   2.6.9-22.ELsmp


2. 查看linux版本: 

1) 登录到服务器执行 lsb_release -a ,即可列出所有版本信息,例如:

   [root@3.5.5Biz-46 ~]# [root@www ~]# lsb_release -a
   LSB Version:    :core-3.0-amd64:core-3.0-ia32:core-3.0-noarch:graphics-3.0-amd64:graphics-3.0-  

   ia32:graphics-3.0-noarch
   Distributor ID: RedHatEnterpriseAS
   Description:    Red Hat Enterprise Linux AS release 4 (Nahant Update 2)
   Release:        4
   Codename:       NahantUpdate2
   注:这个命令适用于所有的linux,包括Redhat、SuSE、Debian等发行版。

2) 登录到linux执行cat /etc/issue,例如如下:

   [root@www ~]# cat /etc/issue
   Red Hat Enterprise Linux AS release 4 (Nahant Update 2)
   Kernel \r on an \m

3) 登录到linux执行cat /etc/redhat-release ,例如如下:

   [root@www ~]# cat /etc/redhat-release
   Red Hat Enterprise Linux AS release 4 (Nahant Update 2)
   注:这种方式下可以直接看到具体的版本号,比如 AS4 Update 1 

4) 登录到linux执行rpm -q redhat-release ,例如如下: 

   [root@www ~]# rpm -q redhat-release
   redhat-release-4AS-3
   注:这种方式下可看到一个所谓的release号,比如上边的例子是3
   这个release号和实际的版本之间存在一定的对应关系,如下:
   redhat-release-3AS-1 -> Redhat Enterprise Linux AS 3
   redhat-release-3AS-7.4 -> Redhat Enterprise Linux AS 3 Update 4
   redhat-release-4AS-2 -> Redhat Enterprise Linux AS 4
   redhat-release-4AS-2.4 -> Redhat Enterprise Linux AS 4 Update 1
   redhat-release-4AS-3 -> Redhat Enterprise Linux AS 4 Update 2
   redhat-release-4AS-4.1 -> Redhat Enterprise Linux AS 4 Update 3
   redhat-release-4AS-5.5 -> Redhat Enterprise Linux AS 4 Update 4 
   另:第3)、4)两种方法只对Redhat Linux有效.