{"id":312,"date":"2012-02-07T09:43:01","date_gmt":"2012-02-07T01:43:01","guid":{"rendered":"http:\/\/www.genepeng.com\/?p=312"},"modified":"2012-02-07T09:43:01","modified_gmt":"2012-02-07T01:43:01","slug":"%e5%a6%82%e4%bd%95%e6%9f%a5%e7%9c%8blinux%e7%89%88%e6%9c%ac","status":"publish","type":"post","link":"https:\/\/www.genepeng.com\/index.php\/312","title":{"rendered":"\u5982\u4f55\u67e5\u770blinux\u7248\u672c"},"content":{"rendered":"<p>\u5982\u4f55\u5f97\u77e5\u81ea\u5df1\u6b63\u5728\u4f7f\u7528\u7684linux\u662f\u4ec0\u4e48\u7248\u672c\u5462\uff0c\u4e0b\u9762\u7684\u51e0\u79cd\u65b9\u6cd5\u5c06\u7ed9\u4f60\u5e26\u6765\u7b54\u6848\uff01<\/p>\n<p>1. \u67e5\u770b\u5185\u6838\u7248\u672c\u547d\u4ee4\uff1a<\/p>\n<p>1) [root@q1test01 ~]# cat \/proc\/version<\/p>\n<p>Linux version 2.6.9-22.ELsmp (bhcompile@crowe.devel.redhat.com) (gcc version 3.4.4 20050721 (Red Hat 3.4.4-2)) #1 SMP Mon Sep 19 18:00:54 EDT 2005<\/p>\n<p>2) [root@q1test01 ~]# uname -a<\/p>\n<p>Linux q1test01 2.6.9-22.ELsmp #1 SMP Mon Sep 19 18:00:54 EDT 2005 x86_64 x86_64 x86_64 GNU\/Linux<\/p>\n<p>3) [root@q1test01 ~]# uname -r<\/p>\n<p>2.6.9-22.ELsmp<\/p>\n<p>2. \u67e5\u770blinux\u7248\u672c\uff1a<\/p>\n<p>1) \u767b\u5f55\u5230\u670d\u52a1\u5668\u6267\u884c lsb_release -a ,\u5373\u53ef\u5217\u51fa\u6240\u6709\u7248\u672c\u4fe1\u606f,\u4f8b\u5982:<\/p>\n<p>[root@3.5.5Biz-46 ~]# [root@q1test01 ~]# lsb_release -a<\/p>\n<p>LSB Version: :core-3.0-amd64:core-3.0-ia32:core-3.0-noarch:graphics-3.0-amd64:graphics-3.0-<\/p>\n<p>ia32:graphics-3.0-noarch<\/p>\n<p>Distributor ID: RedHatEnterpriseAS<\/p>\n<p>Description: Red Hat Enterprise Linux AS release 4 (Nahant Update 2)<\/p>\n<p>Release: 4<\/p>\n<p>Codename: NahantUpdate2<\/p>\n<p>\u6ce8:\u8fd9\u4e2a\u547d\u4ee4\u9002\u7528\u4e8e\u6240\u6709\u7684linux\uff0c\u5305\u62ecRedhat\u3001SuSE\u3001Debian\u7b49\u53d1\u884c\u7248\u3002<\/p>\n<p>2) \u767b\u5f55\u5230linux\u6267\u884ccat \/etc\/issue,\u4f8b\u5982\u5982\u4e0b:<\/p>\n<p>[root@q1test01 ~]# cat \/etc\/issue<\/p>\n<p>Red Hat Enterprise Linux AS release 4 (Nahant Update 2)<\/p>\n<p>Kernel \\r on an \\m<\/p>\n<p>3) \u767b\u5f55\u5230linux\u6267\u884ccat \/etc\/redhat-release ,\u4f8b\u5982\u5982\u4e0b:<\/p>\n<p>[root@q1test01 ~]# cat \/etc\/redhat-release<\/p>\n<p>Red Hat Enterprise Linux AS release 4 (Nahant Update 2)<\/p>\n<p>\u6ce8:\u8fd9\u79cd\u65b9\u5f0f\u4e0b\u53ef\u4ee5\u76f4\u63a5\u770b\u5230\u5177\u4f53\u7684\u7248\u672c\u53f7\uff0c\u6bd4\u5982 AS4 Update 1<\/p>\n<p>4)\u767b\u5f55\u5230linux\u6267\u884crpm -q redhat-release ,\u4f8b\u5982\u5982\u4e0b:<\/p>\n<p>[root@q1test01 ~]# rpm -q redhat-release<\/p>\n<p>redhat-release-4AS-3<\/p>\n<p>\u6ce8:\u8fd9\u79cd\u65b9\u5f0f\u4e0b\u53ef\u770b\u5230\u4e00\u4e2a\u6240\u8c13\u7684release\u53f7\uff0c\u6bd4\u5982\u4e0a\u8fb9\u7684\u4f8b\u5b50\u662f3<\/p>\n<p>\u8fd9\u4e2arelease\u53f7\u548c\u5b9e\u9645\u7684\u7248\u672c\u4e4b\u95f4\u5b58\u5728\u4e00\u5b9a\u7684\u5bf9\u5e94\u5173\u7cfb\uff0c\u5982\u4e0b\uff1a<\/p>\n<p>redhat-release-3AS-1 -&gt; Redhat Enterprise Linux AS 3<\/p>\n<p>redhat-release-3AS-7.4 -&gt; Redhat Enterprise Linux AS 3 Update 4<\/p>\n<p>redhat-release-4AS-2 -&gt; Redhat Enterprise Linux AS 4<\/p>\n<p>redhat-release-4AS-2.4 -&gt; Redhat Enterprise Linux AS 4 Update 1<\/p>\n<p>redhat-release-4AS-3 -&gt; Redhat Enterprise Linux AS 4 Update 2<\/p>\n<p>redhat-release-4AS-4.1 -&gt; Redhat Enterprise Linux AS 4 Update 3<\/p>\n<p>redhat-release-4AS-5.5 -&gt; Redhat Enterprise Linux AS 4 Update 4<\/p>\n<p>\u53e6:\u7b2c3)\u30014)\u4e24\u79cd\u65b9\u6cd5\u53ea\u5bf9Redhat Linux\u6709\u6548\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5982\u4f55\u5f97\u77e5\u81ea\u5df1\u6b63\u5728\u4f7f\u7528\u7684linux\u662f\u4ec0\u4e48\u7248\u672c\u5462\uff0c\u4e0b\u9762\u7684\u51e0\u79cd\u65b9\u6cd5\u5c06\u7ed9\u4f60\u5e26\u6765\u7b54\u6848\uff01 1. \u67e5\u770b\u5185\u6838\u7248\u672c\u547d\u4ee4\uff1a 1) [root@q1test01 ~]# cat \/proc\/version Linux version 2.6.9-22.ELsmp (bhcompile@crowe.devel.redhat.com) (gcc version 3.4.4 20050721 (Red Hat 3.4.4-2)) #1 SMP Mon Sep 19 18:00:54 EDT 2005 2) [root@q1test01 ~]# uname -a Linux q1test01 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@q1test01 ~]# uname -r 2.6.9-22.ELsmp 2. \u67e5\u770blinux\u7248\u672c\uff1a &#8230; <a title=\"\u5982\u4f55\u67e5\u770blinux\u7248\u672c\" class=\"read-more\" href=\"https:\/\/www.genepeng.com\/index.php\/312\" aria-label=\"More on \u5982\u4f55\u67e5\u770blinux\u7248\u672c\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[6],"tags":[],"_links":{"self":[{"href":"https:\/\/www.genepeng.com\/index.php\/wp-json\/wp\/v2\/posts\/312"}],"collection":[{"href":"https:\/\/www.genepeng.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.genepeng.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.genepeng.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.genepeng.com\/index.php\/wp-json\/wp\/v2\/comments?post=312"}],"version-history":[{"count":1,"href":"https:\/\/www.genepeng.com\/index.php\/wp-json\/wp\/v2\/posts\/312\/revisions"}],"predecessor-version":[{"id":313,"href":"https:\/\/www.genepeng.com\/index.php\/wp-json\/wp\/v2\/posts\/312\/revisions\/313"}],"wp:attachment":[{"href":"https:\/\/www.genepeng.com\/index.php\/wp-json\/wp\/v2\/media?parent=312"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.genepeng.com\/index.php\/wp-json\/wp\/v2\/categories?post=312"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.genepeng.com\/index.php\/wp-json\/wp\/v2\/tags?post=312"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}