linux\u5982\u4f55\u770b\u7cfb\u7edf\u7248\u672c<\/strong>\uff0c\u8fd8\u6709\u4e9b\u6784\u5efa\u5185\u6838\u65f6\u4ea7\u751f\u7684\u540d\u5b57\u53ef\u80fd\u4e0e\u7cfb\u7edf\u7248\u672c\u6709\u5173\u3002\u8fd9\u4e2a\u547d\u4ee4\u65b9\u4fbf\u7684\u5730\u65b9\u5728\u4e8e\u64cd\u4f5c\u7b80\u5355\uff0c\u5feb\u6377\uff0c\u65e0\u9700\u989d\u5916\u6743\u9650\u6216\u590d\u6742\u5b89\u88c5\u3002\u800c\u4e14\uff0c\u5b83\u9002\u7528\u4e8e\u5404\u79cd\u53d1\u884c\u7248\uff0c\u662f\u67e5\u770b\u7cfb\u7edf\u548c\u8fdb\u884c\u57fa\u672c\u8bca\u65ad\u7684\u76f4\u63a5\u6709\u6548\u65b9\u6cd5\u3002\"<\/p>\n\u5173\u4e8euname\uff0c\u8fd8\u6709\u4e00\u6761\u547d\u4ee4\u53eb\u505a\u201cuname -r\u201d\u3002\u8fd9\u6761\u547d\u4ee4\u4e3b\u8981\u7528\u4e8e\u67e5\u770b\u5185\u6838\u7684\u7248\u672c\u3002\u5b83\u8f93\u51fa\u7684\u4fe1\u606f\u6ca1\u6709\u201cuname -a\u201d\u90a3\u4e48\u591a\uff0c\u800c\u662f\u76f4\u63a5\u3001\u7b80\u6d01\u5730\u5c55\u793a\u5185\u6838\u7684\u7248\u672c\u53f7\u3002\u5982\u679c\u6211\u4eec\u53ea\u60f3\u77e5\u9053\u5185\u6838\u7248\u672c\uff0c\u90a3\u4e48\u4f7f\u7528\u8fd9\u4e2a\u547d\u4ee4\u5c31\u518d\u5408\u9002\u4e0d\u8fc7\u4e86\u3002<\/p>\n
\u6587\u4ef6\u67e5\u770b\u6cd5<\/b><\/p>\n
Linux\u7cfb\u7edf\u4e2d\u5b58\u6709\u53cd\u6620\u7cfb\u7edf\u7248\u672c\u4fe1\u606f\u7684\u6587\u4ef6\uff0c\u6bd4\u5982\u201c\/etc\/os-release\u201d\u3002\u901a\u8fc7\u5728\u7ec8\u7aef\u6267\u884c\u201ccat \/etc\/os-release\u201d\u547d\u4ee4\uff0c\u53ef\u4ee5\u67e5\u9605\u8be5\u6587\u4ef6\u7684\u5177\u4f53\u5185\u5bb9\u3002\u6587\u4ef6\u4e2d\u901a\u5e38\u8be6\u5c3d\u5730\u8bb0\u8f7d\u4e86\u7cfb\u7edf\u5206\u53d1\u7248\u7684\u5177\u4f53\u4fe1\u606f\u3002\u4e0d\u540cLinux\u53d1\u884c\u7248\u5728\u6587\u4ef6\u683c\u5f0f\u4e0a\u53ef\u80fd\u5b58\u5728\u7ec6\u5fae\u5dee\u5f02\uff0c\u4f46\u57fa\u672c\u4e0a\u90fd\u5305\u542b\u7248\u672c\u53f7\u3001\u53d1\u884c\u7248\u540d\u79f0\u7b49\u6838\u5fc3\u4fe1\u606f\u3002\u901a\u8fc7\u8fd9\u4e9b\u4fe1\u606f\uff0c\u6211\u4eec\u80fd\u5168\u9762\u638c\u63e1\u7cfb\u7edf\u6240\u4f9d\u8d56\u7684Linux\u5206\u652f\u53ca\u5177\u4f53\u7248\u672c\u8be6\u60c5\u3002<\/p>\n
<\/p>\n
Debian\u7cfb\u7edf\u4e0b\u5b58\u5728\u4e00\u4e2a\u540d\u4e3a\/etc\/debian_version\u7684\u6587\u4ef6\u3002\u8fd9\u4e2a\u6587\u4ef6\u4e13\u95e8\u7528\u4e8e\u67e5\u770bDebian\u7248\u672c\u4fe1\u606f\u3002\u901a\u8fc7\u6267\u884c\u547d\u4ee4\u201ccat \/etc\/debian_version\u201d\uff0c\u6211\u4eec\u80fd\u8fc5\u901f\u83b7\u53d6\u7248\u672c\u4fe1\u606f\u3002\u8be5\u6587\u4ef6\u4f7f\u5f97Debian\u7248\u672c\u67e5\u8be2\u53d8\u5f97\u65e2\u51c6\u786e\u53c8\u5feb\u6377\u3002<\/p>\n
\u4f7f\u7528lsb_release\u547d\u4ee4<\/b><\/p>\n
\u5b89\u88c5\u4e86lsb-release\u5305\u540e\uff0c\u6211\u4eec\u4fbf\u53ef\u4ee5\u4f7f\u7528\u201clsb_release -a\u201d\u547d\u4ee4\u3002\u6b64\u547d\u4ee4\u80fd\u663e\u793a\u66f4\u8be6\u5c3d\u7684\u7cfb\u7edf\u7248\u672c\u8d44\u6599\u3002\u4e0d\u540c\u53d1\u884c\u7248\u5bf9\u5305\u7684\u547d\u540d\u53ef\u80fd\u6709\u6240\u5dee\u5f02\uff0c\u4f46\u5176\u529f\u80fd\u4e00\u81f4\u3002\u547d\u4ee4\u8f93\u51fa\u7684\u4fe1\u606f\u5305\u62ec\u7248\u672c\u53f7\u3001\u53d1\u884c\u7248\u540d\uff0c\u751a\u81f3\u8fd8\u6709\u8bc6\u522b\u7801\u7b49\u8be6\u5c3d\u6570\u636e\u3002\u8fd9\u5728\u7f16\u7a0b\u5f00\u53d1\u4e2d\u5bfb\u627e\u8fd0\u884c\u73af\u5883\u548c\u4f9d\u8d56\u5173\u7cfb\u65f6\u5c24\u4e3a\u5173\u952e\u3002<\/p>\n
<\/p>\n
\u5b58\u5728\u4e00\u4e2a\u540d\u4e3a\u201clsb_release -v\u201d\u7684\u6307\u4ee4\uff0c\u5176\u4e3b\u8981\u529f\u80fd\u662f\u5c55\u793a\u7cfb\u7edf\u7248\u672c\u8be6\u60c5\u3002\u4e0e\u201c-a\u201d\u6307\u4ee4\u76f8\u6bd4\uff0c\u5b83\u5177\u6709\u66f4\u9ad8\u7684\u9488\u5bf9\u6027\u3002\u8be5\u6307\u4ee4\u80fd\u7b80\u660e\u627c\u8981\u5730\u5c55\u793a\u7248\u672c\u53f7\u53ca\u4ee3\u7801\u6807\u8bc6\uff0c\u4fbf\u4e8e\u6211\u4eec\u8fc5\u901f\u627e\u5230\u6240\u9700\u7248\u672c\u4fe1\u606f\uff0c\u7528\u4e8e\u6bd4\u8f83\u6216\u7cfb\u7edf\u66f4\u65b0\u7b49\u64cd\u4f5c\u3002<\/p>\n
\u56fe\u5f62\u754c\u9762\u67e5\u770b<\/b><\/p>\n
\u4e0d\u5c11Linux\u7cfb\u7edf\u90fd\u63d0\u4f9b\u4e86\u56fe\u5f62\u754c\u9762\u6765\u67e5\u770b\u7cfb\u7edf\u7248\u672c\u3002\u5728\u7cfb\u7edf\u8bbe\u7f6e\u4e2d\uff0c\u901a\u5e38\u4f1a\u6709\u4e00\u4e2a\u5173\u4e8e\u7cfb\u7edf\u4fe1\u606f\u7684\u6a21\u5757\u3002\u4e0d\u540c\u7248\u672c\u7684Linux\uff0c\u8fd9\u4e2a\u6a21\u5757\u7684\u540d\u79f0\u6216\u8def\u5f84\u53ef\u80fd\u6709\u6240\u4e0d\u540c\u3002\u4e0d\u8fc7\uff0c\u5b83\u4eec\u7684\u57fa\u672c\u539f\u7406\u662f\u76f8\u8fd1\u7684\u3002\u4ee5Ubuntu\u4e3a\u4f8b\uff0c\u5728\u56fe\u5f62\u754c\u9762\u4e2d\uff0c\u6211\u4eec\u80fd\u591f\u8f7b\u677e\u5730\u627e\u5230\u7cfb\u7edf\u8bbe\u7f6e\u4e2d\u7684\u8be6\u7ec6\u4fe1\u606f\u6a21\u5757\uff0c\u4ece\u800c\u67e5\u770b\u7cfb\u7edf\u7684\u5177\u4f53\u7248\u672c\u3002\u8fd9\u79cd\u65b9\u6cd5\u975e\u5e38\u9002\u5408\u90a3\u4e9b\u521a\u5f00\u59cb\u63a5\u89e6Linux\u3001\u4e0d\u592a\u719f\u6089\u547d\u4ee4\u884c\u7684\u65b0\u624b\u7528\u6237\u3002<\/p>\n
\u5728CentOS\u7684\u56fe\u5f62\u754c\u9762\u4e2d\uff0c\u4e5f\u5b58\u5728\u4e00\u4e2a\u7528\u4e8e\u67e5\u770b\u7cfb\u7edf\u7248\u672c\u4fe1\u606f\u7684\u8be6\u7ec6\u533a\u57df\u3002\u8fd9\u6837\u7684\u8bbe\u8ba1\u4e3a\u504f\u597d\u56fe\u5f62\u64cd\u4f5c\u7684\u7528\u6237\u63d0\u4f9b\u4e86\u65b9\u4fbf\uff0c\u4ed6\u4eec\u65e0\u9700\u8bb0\u4f4f\u7e41\u7410\u7684\u547d\u4ee4\uff0c\u4fbf\u80fd\u8fc5\u901f\u638c\u63e1\u7cfb\u7edf\u7248\u672c\u4fe1\u606f\u3002<\/p>\n
CentOS\u4e13\u7528\u547d\u4ee4<\/b><\/p>\n
CentOS\u7cfb\u7edf\u4e2d\u5b58\u5728\u4e00\u4e2a\u540d\u4e3a\u201crpm -q centos - release\u201d\u7684\u6307\u4ee4\u3002\u8be5\u6307\u4ee4\u80fd\u6709\u6548\u67e5\u8be2CentOS\u7684\u7248\u672c\u8be6\u60c5\u3002\u5728CentOS\u7cfb\u7edf\u7ba1\u7406\u4e2dlinux\u7cfb\u7edf\u7f16\u7a0b\uff0c\u8fd9\u4e2a\u6307\u4ee4\u975e\u5e38\u5b9e\u7528\u3002\u5b83\u4e0d\u4ec5\u4e0e\u7cfb\u7edf\u5305\u7ba1\u7406\u7d27\u5bc6\u76f8\u8fde\uff0c\u8fd8\u80fd\u9a8c\u8bc1CentOS\u7cfb\u7edf\u662f\u5426\u5df2\u6b63\u786e\u5b89\u88c5\u4e86\u6307\u5b9a\u7248\u672c\u7684\u5305\u3002<\/p>\n
<\/p>\n
CentOS\u7cfb\u7edf\u5185\u7f6e\u4e86\u201ccat \/etc\/redhat-release\u201d\u8fd9\u4e00\u6307\u4ee4\u3002\u901a\u8fc7\u6267\u884c\u6b64\u547d\u4ee4\uff0c\u6211\u4eec\u53ef\u4ee5\u67e5\u770b\u5230\u7cfb\u7edf\u7684\u5177\u4f53\u7248\u672c\u4fe1\u606f\u3002\u8fd9\u79cd\u901a\u8fc7\u8bfb\u53d6\u7279\u5b9a\u6587\u4ef6\u5185\u5bb9\u6765\u83b7\u53d6\u7248\u672c\u8be6\u60c5\u7684\u65b9\u6cd5\uff0c\u5bf9\u4e8e\u7ef4\u62a4CentOS\u7cfb\u7edf\u53ca\u5904\u7406\u6545\u969c\u5177\u6709\u81f3\u5173\u91cd\u8981\u7684\u4f5c\u7528\u3002<\/p>\n
\u5927\u5bb6\u5bf9Linux\u7cfb\u7edf\u7248\u672c\u7684\u4e86\u89e3\u662f\u5426\u6709\u6240\u63d0\u5347\uff1f\u82e5\u4f60\u4eec\u6709\u66f4\u4f73\u7684\u7248\u672c\u67e5\u770b\u6280\u5de7\uff0c\u6216\u662f\u9047\u5230\u4efb\u4f55\u56f0\u96be\uff0c\u6b22\u8fce\u5728\u8bc4\u8bba\u533a\u7559\u8a00\u4ea4\u6d41\u3002\u540c\u65f6linux\u5982\u4f55\u770b\u7cfb\u7edf\u7248\u672c<\/strong>\uff0c\u4e5f\u8bf7\u5927\u5bb6\u4e3a\u8fd9\u7bc7\u6587\u7ae0\u70b9\u8d5e\u5e76\u8f6c\u53d1\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u638c\u63e1\u67e5\u770bLinux\u7cfb\u7edf\u7248\u672c\u7684\u65b9\u6cd5\u662f\u57fa\u7840\u4e2d\u7684\u57fa\u7840\uff0c\u4e5f\u662f\u4e0d\u53ef\u6216\u7f3a\u7684\u6280\u80fd\u3002\u901a\u8fc7\u8fd9\u4e9b\u4fe1\u606f\uff0c\u6211\u4eec\u80fd\u5168\u9762\u638c\u63e1\u7cfb\u7edf\u6240\u4f9d\u8d56\u7684Linux\u5206\u652f\u53ca\u5177\u4f53\u7248\u672c\u8be6\u60c5\u3002\u5728CentOS\u7684\u56fe\u5f62\u754c\u9762\u4e2d\uff0c\u4e5f\u5b58\u5728\u4e00\u4e2a\u7528\u4e8e\u67e5\u770b\u7cfb\u7edf\u7248\u672c\u4fe1\u606f\u7684\u8be6\u7ec6\u533a\u57df\u3002\u901a\u8fc7\u6267\u884c\u6b64\u547d\u4ee4\uff0c\u6211\u4eec\u53ef\u4ee5\u67e5\u770b\u5230\u7cfb\u7edf\u7684\u5177\u4f53\u7248\u672c\u4fe1\u606f\u3002<\/p>\n","protected":false},"author":1,"featured_media":295509,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[988],"tags":[109,4833,3781,1000,5558],"class_list":["post-295508","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tougao","tag-linux","tag-UbuntuCentOS","tag-uml-5","tag-txjm","tag-xtbbzk"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/295508","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=295508"}],"version-history":[{"count":0,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/295508\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/295509"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=295508"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=295508"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=295508"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}