\u5728\u7ec8\u7aef\u4e2d\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\u5373\u53ef\u67e5\u770b\u5f53\u524d\u8fd0\u884c\u7684\u5185\u6838\u7248\u672c\uff1a<\/p>\n
shell\nuname -r\n<\/pre>\n<\/p>\n\u6b64\u6307\u4ee4\u5c06\u663e\u793a\u51fa\u7684\u662f\u5185\u6838\u7684\u7248\u672c\u4fe1\u606f\uff0c\u6bd4\u5982\uff0c\u60a8\u6240\u770b\u5230\u7684\u6216\u8bb8\u5c31\u662f\"5.4.0-42-generic\"\u8fd9\u6837\u7684\u6837\u5f0f\u3002<\/p>\n
2.\u67e5\u770b\/proc\/version\u6587\u4ef6<\/b><\/p>\n
\u5c0a\u656c\u7684\u7528\u6237linux\u5b66\u4e60\u8bba\u575b\uff0cLinux\u7684\u6838\u5fc3\u4fe1\u606f\u88ab\u59a5\u5584\u5730\u4fdd\u5b58\u5728\/proc\/version\u8fd9\u4e2a\u5c0f\u6587\u4ef6\u91cc\u54e6\uff01\u53ea\u8981\u60a8\u8f7b\u70b9\u9f20\u6807\uff0c\u5c31\u80fd\u4ece\u8fd9\u91cc\u7aa5\u63a2\u5230\u66f4\u591a\u5173\u4e8e\u5185\u6838\u7684\u8be6\u5c3d\u8d44\u6599\u5566~\u8bf7\u60a8\u5728\u7ec8\u7aef\u4e2d\u6301\u7eed\u6309\u4e0b\u5982\u4e0b\u547d\u4ee4\uff1a<\/p>\n
cat \/proc\/version<\/p>\n
\u6b64\u547d\u4ee4\u4f1a\u5448\u73b0\u51fa\u5305\u542b\u6838\u5fc3\u7248\u672c\uff0c\u7f16\u8bd1\u65e5\u5386\u4e0e\u6642\u523b\uff0cGCC\u7248\u672c\u5728\u5185\u7684\u4fe1\u606f\u3002<\/p>\n
\u8bf7\u60a8\u5c1d\u8bd5\u67e5\u9a8c\u4e0b`\/proc\/sys\/kernel\/osrelease`\u8fd9\u4e2a\u6587\u4ef6\u54e6\u3002<\/p>\n
<\/p>\n
\u60a8\u53ef\u5c1d\u8bd5\u53c2\u7167\/proc\/sys\/kernel\/osrelease\u8fd9\u4e2a\u6587\u4ef6\u54e6~\u53ea\u9700\u8fd0\u884c\u4ee5\u4e0b\u8fd9\u884c\u6307\u4ee4\u5373\u53ef\uff1a<\/p>\n
\u8bf7\u60a8\u67e5\u770b\u4e0b\u5185\u6838\u7248\u672c\u7ea2\u5e3d\u5b50linux\uff0c\u8fd0\u884c\u4ee5\u4e0b\u6307\u4ee4\u5373\u53ef\uff1a\uff08\u8f93\u5165\uff09 cat \/proc\/sys\/kernel\/osrelease<\/p>\n
\u8be5\u547d\u4ee4\u4f1a\u76f4\u63a5\u8fd4\u56de\u5f53\u524d\u8fd0\u884c\u7684\u5185\u6838\u7248\u672c\u53f7\u3002<\/p>\n
4.\u4f7f\u7528lsb_release\u547d\u4ee4<\/b><\/p>\n
\u4f7f\u7528lsb_release\u547d\u4ee4\u53ef\u8f7b\u677e\u83b7\u53d6\u5230\u60a8\u6240\u4f7f\u7528\u7684Linux\u53d1\u884c\u7248\u76f8\u5173\u4fe1\u606f\u54e6\uff01\u53ea\u9700\u7b80\u5355\u5730\u5728\u7ec8\u7aef\u6572\u5165\u8be5\u6307\u4ee4\u5373\u53ef\uff1a<\/p>\n
lsb_release -a<\/p>\n
\u60a8\u80fd\u901a\u8fc7\u6b64\u6307\u4ee4\u83b7\u53d6\u5230\u4e30\u5bcc\u7684\u5185\u5bb9\uff0c\u5982\u5185\u6838\u7248\u672c\u3001\u53d1\u884c\u7248\u540d\u79f0\u548c\u7248\u672c\u53f7\u7b49\u91cd\u8981\u4fe1\u606f\u3002<\/p>\n
5.\u67e5\u770bdmesg\u65e5\u5fd7<\/b><\/p>\n
\u8bf7\u8bd5\u8bd5 dmesg \u8fd9\u4e2a\u5de5\u5177\u5427\uff0c\u5b83\u80fd\u5e2e\u52a9\u60a8\u67e5\u770b\u5185\u6838\u73af\u7f13\u51b2\u533a\uff0c\u8fd8\u80fd\u65b9\u4fbf\u5feb\u6377\u5730\u83b7\u5f97\u5185\u6838\u7248\u672c\u4fe1\u606f\u5462\uff01\u53ea\u9700\u7b80\u5355\u7684\u5728\u7ec8\u7aef\u4e0a\u6267\u884c\u4ee5\u4e0b\u6307\u4ee4\u5373\u53ef\u3002<\/p>\n
dmesg | grep \"Linux version\"<\/p>\n
\u8fd9\u4e2a\u6307\u4ee4\u5c06\u4f1a\u663e\u793a\u5e26\u6709\"Linux version\"\u5173\u952e\u8bcd\u7684\u5185\u5bb9\uff0c\u5176\u4e2d\u4e5f\u80fd\u627e\u5230\u5185\u6838\u7248\u53f7\u54e6~<\/p>\n
6.\u4f7f\u7528\/proc\/cmdline\u6587\u4ef6<\/b><\/p>\n
\u60a8\u60f3\u77e5\u9053\u5982\u4f55\u4e86\u89e3\u60a8\u73b0\u5728\u6b63\u5728\u8fd0\u884c\u7684\u5185\u6838\u7248\u672c\u5417\uff1f\u53ea\u8981\u5728\u7ec8\u7aef\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\u5373\u53ef\uff0c\u8fd9\u6837\u5c31\u4f1a\u5c55\u793a\u51fa\u60a8\u5f53\u524d\u5185\u6838\u547d\u4ee4\u884c\u53c2\u6570\u4ee5\u53ca\u5185\u6838\u7248\u672c\u4fe1\u606f\u54e6\uff01<\/p>\n
\u8bf7\u60a8\u67e5\u770b\/proc\/cmdline\u6587\u4ef6\uff0c\u5e76\u4f7f\u7528grep\u547d\u4ee4\u67e5\u627e\u6709\u6ca1\u6709\u5305\u542b\"version\"\u7684\u884c\u3002<\/p>\n
\u8fd9\u4e2a\u6307\u4ee4\u5c06\u7cbe\u51c6\u5b9a\u4f4d\u5305\u542b\"version\"\u5173\u952e\u8bcd\u7684\u90a3\u4e00\u884c\uff0c\u4ece\u800c\u8f7b\u677e\u83b7\u53d6\u5185\u6838\u7248\u672c\u4fe1\u606f\u54e6\u3002<\/p>\n
7.\u4f7f\u7528\u7cfb\u7edf\u76d1\u63a7\u5de5\u5177<\/b><\/p>\n
\u9664\u524d\u8ff0\u65b9\u6cd5\u5916\uff0c\u60a8\u4e5f\u53ef\u501f\u7528\u7cfb\u7edf\u76d1\u63a7\u5de5\u5177\u83b7\u53d6\u4e86\u89e3\u5185\u6838\u7248\u672c\u4fe1\u606f\u54e6\u3002\u5982top\u3001htop\u7b49\u5de5\u5177\u5747\u80fd\u663e\u793a\u5f53\u524d\u8fd0\u884c\u7684\u5185\u6838\u7248\u672c\u5462\u3002\u6b64\u5916linux \u67e5\u770b\u5185\u6838\u7248\u672c<\/strong>\uff0c\u5b83\u4eec\u901a\u5e38\u8fd8\u5177\u5907\u66f4\u5168\u9762\u7684\u7cfb\u7edf\u4fe1\u606f\u53ca\u6027\u80fd\u76d1\u63a7\u529f\u80fd\u5440\u3002<\/p>\n\u9075\u5faa\u5982\u4e0a\u4e03\u4e2a\u6b65\u9aa4\uff0c\u60a8\u80fd\u4fbf\u6377\u5730\u5728Linux\u7cfb\u7edf\u4e2d\u83b7\u53d6\u5f53\u524d\u8fd0\u4f5c\u7684\u5185\u6838\u7248\u672c\u4fe1\u606f\u3002\u65e0\u8bba\u662f\u7cfb\u7edf\u7ef4\u62a4\u8fd8\u662f\u95ee\u9898\u6392\u67e5\u8fc7\u7a0blinux \u67e5\u770b\u5185\u6838\u7248\u672c<\/strong>\uff0c\u6df1\u5ea6\u7406\u89e3\u5185\u6838\u7248\u672c\u5fc5\u5b9a\u4f1a\u5e26\u6765\u52a9\u76ca\u3002\u613f\u6b64\u6587\u80fd\u5bf9\u60a8\u8d77\u5230\u5b9e\u9645\u4f5c\u7528\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"\u6b64\u6307\u4ee4\u5c06\u663e\u793a\u51fa\u7684\u662f\u5185\u6838\u7684\u7248\u672c\u4fe1\u606f\uff0c\u6bd4\u5982\uff0c\u60a8\u6240\u770b\u5230\u7684\u6216\u8bb8\u5c31\u662f5.\u53ea\u8981\u60a8\u8f7b\u70b9\u9f20\u6807\uff0c\u5c31\u80fd\u4ece\u8fd9\u91cc\u7aa5\u63a2\u5230\u66f4\u591a\u5173\u4e8e\u5185\u6838\u7684\u8be6\u5c3d\u8d44\u6599\u5566~version\u5173\u952e\u8bcd\u7684\u5185\u5bb9\uff0c\u5176\u4e2d\u4e5f\u80fd\u627e\u5230\u5185\u6838\u7248\u53f7\u54e6~\u60a8\u60f3\u77e5\u9053\u5982\u4f55\u4e86\u89e3\u60a8\u73b0\u5728\u6b63\u5728\u8fd0\u884c\u7684\u5185\u6838\u7248\u672c\u5417\uff1f\u8fd9\u4e2a\u6307\u4ee4\u5c06\u7cbe\u51c6\u5b9a\u4f4d\u5305\u542bversion\u5173\u952e\u8bcd\u7684\u90a3\u4e00\u884c\uff0c\u4ece\u800c\u8f7b\u677e\u83b7\u53d6\u5185\u6838\u7248\u672c\u4fe1\u606f\u54e6\u3002<\/p>\n","protected":false},"author":1,"featured_media":289480,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[988],"tags":[999],"class_list":["post-289479","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tougao","tag-999"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/289479","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=289479"}],"version-history":[{"count":0,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/289479\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/289480"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=289479"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=289479"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=289479"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}