{"id":286234,"date":"2023-10-28T20:11:17","date_gmt":"2023-10-28T12:11:17","guid":{"rendered":"https:\/\/lrxjmw.cn\/clxtbbqsgbbx.html"},"modified":"2023-10-28T20:11:17","modified_gmt":"2023-10-28T12:11:17","slug":"clxtbbqsgbbx","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/clxtbbqsgbbx.html","title":{"rendered":"\u67e5Linux\u7cfb\u7edf\u7248\u672c\uff0c\u8f7b\u677eget\u7248\u672c\u4fe1\u606f"},"content":{"rendered":"

\u4f5c\u4e3a\u4e00\u540d\u5bf9\u8ba1\u7b97\u673a\u79d1\u5b66\u5145\u6ee1\u70ed\u60c5\u7684\u5b66\u751f\uff0c\u6211\u7ecf\u5e38\u4f7f\u7528Linux<\/a>\u64cd\u4f5c\u7cfb\u7edf<\/a>\u8fdb\u884c\u7f16\u7a0b\u548c\u5b9e\u9a8c\u3002\u5728\u4f7f\u7528Linux\u7cfb\u7edf\u7684\u8fc7\u7a0b\u4e2d\uff0c\u6709\u65f6\u5019\u9700\u8981\u67e5\u627e\u7cfb\u7edf\u7684\u7248\u672c\u4fe1\u606f\u3002\u4eca\u5929\uff0c\u6211\u5c31\u6765\u5206\u4eab\u4e00\u4e0b\u6211\u662f\u5982\u4f55\u67e5\u627eLinux\u7cfb\u7edf\u7248\u672c\u7684\u3002<\/p>\n

1.\u4f7f\u7528\u547d\u4ee4<\/a>\u884c\u67e5\u627e<\/b><\/p>\n

\u5728Linux\u7cfb\u7edf\u4e2d\uff0c\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7\u547d\u4ee4\u884c\u6765\u67e5\u627e\u7cfb\u7edf\u7248\u672c\u3002\u6253\u5f00\u7ec8\u7aef\uff0c\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n

\n

\nlsb_release -a\n<\/pre>\n<\/p>\n

\u8fd9\u4e2a\u547d\u4ee4\u4f1a\u663e\u793a\u51fa\u7cfb\u7edf\u7684\u7248\u672c\u4fe1\u606f\uff0c\u5305\u62ec\u53d1\u884c\u7248\u540d\u79f0\u3001\u7248\u672c\u53f7\u7b49\u8be6\u7ec6\u4fe1\u606f\u3002<\/p>\n

2.\u67e5\u770b\u7cfb\u7edf\u65e5\u5fd7<\/b><\/p>\n

\u53e6\u4e00\u79cd\u67e5\u627eLinux\u7cfb\u7edf\u7248\u672c\u7684\u65b9\u6cd5\u662f\u901a\u8fc7\u67e5\u770b\u7cfb\u7edf\u65e5\u5fd7\u3002\u5728\u7ec8\u7aef\u4e2d\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n

\n

\ncat \/var\/log\/syslog | grep \"DISTRIB_DESCRIPTION\"\n<\/pre>\n<\/p>\n

\u8fd9\u4e2a\u547d\u4ee4\u4f1a\u641c\u7d22\u7cfb\u7edf\u65e5\u5fd7\u6587\u4ef6\u5e76\u663e\u793a\u5305\u542b\"DISTRIB_DESCRIPTION\"\u5173\u952e\u5b57\u7684\u884c\u600e\u4e48\u67e5linux\u7cfb\u7edf\u7248\u672c<\/strong>\uff0c\u5176\u4e2d\u5305\u542b\u4e86\u7cfb\u7edf\u7248\u672c\u4fe1\u606f\u3002<\/p>\n

3.\u4f7f\u7528\u56fe\u5f62\u754c\u9762\u5de5\u5177<\/b><\/p>\n

\u5982\u679c\u4f60\u66f4\u559c\u6b22\u4f7f\u7528\u56fe\u5f62\u754c\u9762\u8fdb\u884c\u64cd\u4f5c\uff0c\u90a3\u4e48\u53ef\u4ee5\u901a\u8fc7\u56fe\u5f62\u754c\u9762\u5de5\u5177\u6765\u67e5\u627eLinux\u7cfb\u7edf\u7248\u672c\u3002\u4e0d\u540c\u7684\u53d1\u884c\u7248\u53ef\u80fd\u6709\u4e0d\u540c\u7684\u5de5\u5177linux\u6587\u4ef6\u7cfb\u7edf\uff0c\u4f46\u901a\u5e38\u53ef\u4ee5\u5728\"\u8bbe\u7f6e\"\u6216\"\u5173\u4e8e\"\u83dc\u5355\u4e2d\u627e\u5230\u76f8\u5173\u9009\u9879\u3002<\/p>\n

4.\u67e5\u770b\u7cfb\u7edf\u6587\u4ef6<\/b><\/p>\n

linux\u64cd\u4f5c\u7cfb\u7edf\u67e5\u770b\u7248\u672c_linux\u67e5\u8be2\u7cfb\u7edf\u7248\u672c_\u600e\u4e48\u67e5linux\u7cfb\u7edf\u7248\u672c<\/p>\n

Linux\u7cfb\u7edf\u7684\u7248\u672c\u4fe1\u606f\u4e5f\u53ef\u4ee5\u901a\u8fc7\u67e5\u770b\u7cfb\u7edf\u6587\u4ef6\u6765\u83b7\u53d6\u3002\u6253\u5f00\u7ec8\u7aef\uff0c\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n

\n

\ncat \/etc\/os-release\n<\/pre>\n<\/p>\n

\u8fd9\u4e2a\u547d\u4ee4\u4f1a\u663e\u793a\u51fa\u5305\u542b\u7cfb\u7edf\u7248\u672c\u4fe1\u606f\u7684\u6587\u4ef6\u5185\u5bb9\uff0c\u5305\u62ec\u53d1\u884c\u7248\u540d\u79f0\u3001\u7248\u672c\u53f7\u7b49\u3002<\/p>\n

5.\u4f7f\u7528\u7cfb\u7edf\u76d1\u63a7\u5de5\u5177<\/b><\/p>\n

\u4e00\u4e9b\u7cfb\u7edf\u76d1\u63a7\u5de5\u5177\u4e5f\u63d0\u4f9b\u4e86\u67e5\u770bLinux\u7cfb\u7edf\u7248\u672c\u7684\u529f\u80fd\u3002\u4f60\u53ef\u4ee5\u5b89\u88c5\u5e76\u4f7f\u7528\u8fd9\u4e9b\u5de5\u5177\u6765\u83b7\u53d6\u7cfb\u7edf\u7248\u672c\u4fe1\u606flinux\u67e5\u770b\u8fdb\u7a0b\uff0c\u6bd4\u5982htop\u3001top\u7b49\u3002<\/p>\n

6.\u53c2\u8003\u5b98\u65b9\u6587\u6863<\/b><\/p>\n

\u6bcf\u4e2aLinux\u53d1\u884c\u7248\u90fd\u6709\u5bf9\u5e94\u7684\u5b98\u65b9\u6587\u6863\uff0c\u4f60\u53ef\u4ee5\u5728\u5b98\u65b9\u6587\u6863\u4e2d\u627e\u5230\u5173\u4e8e\u67e5\u627e\u7cfb\u7edf\u7248\u672c\u7684\u8be6\u7ec6\u8bf4\u660e\u548c\u6307\u5bfc\u3002<\/p>\n

7.\u5411\u793e\u533a\u6c42\u52a9<\/b><\/p>\n

\u5982\u679c\u4f60\u5728\u67e5\u627eLinux\u7cfb\u7edf\u7248\u672c\u7684\u8fc7\u7a0b\u4e2d\u9047\u5230\u4e86\u95ee\u9898\uff0c\u4e0d\u59a8\u5411Linux\u793e\u533a\u5bfb\u6c42\u5e2e\u52a9\u3002\u5728\u5404\u79cd\u6280\u672f\u8bba\u575b\u548c\u793e\u4ea4\u5a92\u4f53\u4e0a\uff0c\u90fd\u6709\u8bb8\u591a\u70ed\u5fc3\u7684Linux\u7231\u597d\u8005\u613f\u610f\u63d0\u4f9b\u5e2e\u52a9\u548c\u89e3\u7b54\u7591\u60d1\u3002<\/p>\n

8.\u4fdd\u6301\u5b66\u4e60\u6001\u5ea6<\/b><\/p>\n

\u4f5c\u4e3a\u4e00\u540d\u5b66\u751f\u600e\u4e48\u67e5linux\u7cfb\u7edf\u7248\u672c<\/strong>\uff0c\u6211\u6df1\u77e5\u5b66\u4e60\u662f\u4e00\u4e2a\u4e0d\u65ad\u63a2\u7d22\u548c\u6210\u957f\u7684\u8fc7\u7a0b\u3002\u5728\u4f7f\u7528Linux\u7cfb\u7edf\u65f6\uff0c\u6211\u4eec\u8981\u4fdd\u6301\u5b66\u4e60\u6001\u5ea6\uff0c\u4e0d\u65ad\u5c1d\u8bd5\u65b0\u7684\u65b9\u6cd5\u548c\u5de5\u5177\uff0c\u4ee5\u4fbf\u66f4\u597d\u5730\u7406\u89e3\u548c\u5229\u7528\u8fd9\u4e2a\u5f3a\u5927\u7684\u64cd\u4f5c\u7cfb\u7edf\u3002<\/p>\n

\u901a\u8fc7\u4ee5\u4e0a\u65b9\u6cd5\uff0c\u6211\u4eec\u53ef\u4ee5\u8f7b\u677e\u5730\u67e5\u627eLinux\u7cfb\u7edf\u7684\u7248\u672c\u4fe1\u606f\u3002\u65e0\u8bba\u662f\u4f7f\u7528\u547d\u4ee4\u884c\u8fd8\u662f\u56fe\u5f62\u754c\u9762\uff0c\u90fd\u80fd\u5e2e\u52a9\u6211\u4eec\u5feb\u901f\u83b7\u53d6\u6240\u9700\u7684\u7cfb\u7edf\u7248\u672c\u4fe1\u606f\u3002\u4f5c\u4e3a\u4e00\u540d\u70ed\u7231\u79d1\u6280\u7684\u5b66\u751f\uff0c\u6211\u9f13\u52b1\u5927\u5bb6\u591a\u591a\u5c1d\u8bd5\u5e76\u4e0d\u65ad\u5b66\u4e60\uff0c\u638c\u63e1\u66f4\u591a\u5173\u4e8eLinux\u7cfb\u7edf\u7684\u77e5\u8bc6\u548c\u6280\u5de7\u3002\u613f\u6211\u4eec\u5728\u79d1\u6280\u7684\u9053\u8def\u4e0a\u8d8a\u8d70\u8d8a\u8fdc\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"

\u53e6\u4e00\u79cd\u67e5\u627eLinux\u7cfb\u7edf\u7248\u672c\u7684\u65b9\u6cd5\u662f\u901a\u8fc7\u67e5\u770b\u7cfb\u7edf\u65e5\u5fd7\u3002\u8fd9\u4e2a\u547d\u4ee4\u4f1a\u641c\u7d22\u7cfb\u7edf\u65e5\u5fd7\u6587\u4ef6\u5e76\u663e\u793a\u5305\u542bDISTRIB_DESCRIPTION\u5173\u952e\u5b57\u7684\u884c\uff0c\u5176\u4e2d\u5305\u542b\u4e86\u7cfb\u7edf\u7248\u672c\u4fe1\u606f\u3002Linux\u7cfb\u7edf\u7684\u7248\u672c\u4fe1\u606f\u4e5f\u53ef\u4ee5\u901a\u8fc7\u67e5\u770b\u7cfb\u7edf\u6587\u4ef6\u6765\u83b7\u53d6\u3002\u901a\u8fc7\u4ee5\u4e0a\u65b9\u6cd5\uff0c\u6211\u4eec\u53ef\u4ee5\u8f7b\u677e\u5730\u67e5\u627eLinux\u7cfb\u7edf\u7684\u7248\u672c\u4fe1\u606f\u3002<\/p>\n","protected":false},"author":1,"featured_media":286235,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[988],"tags":[999],"class_list":["post-286234","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\/286234","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=286234"}],"version-history":[{"count":0,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/286234\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/286235"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=286234"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=286234"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=286234"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}