{"id":277559,"date":"2023-07-14T20:07:49","date_gmt":"2023-07-14T12:07:49","guid":{"rendered":"https:\/\/lrxjmw.cn\/lzdzwxtxxdsq.html"},"modified":"2023-07-14T20:07:49","modified_gmt":"2023-07-14T12:07:49","slug":"lzdzwxtxxdsq","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/lzdzwxtxxdsq.html","title":{"rendered":"Linux\u7ec8\u7aef\uff1a\u638c\u63e1\u7cfb\u7edf\u4fe1\u606f\u7684\u795e\u5947\u547d\u4ee4"},"content":{"rendered":"

Linux<\/a>\u7ec8\u7aef\u63ed\u79d8\uff1a\u4e00\u952e\u638c\u63e1\u7cfb\u7edf<\/a>\u4fe1\u606f\u7684\u795e\u5947\u547d\u4ee4<\/a><\/b><\/p>\n

\u5728\u65e5\u5e38\u4f7f\u7528\u8ba1\u7b97\u673a\u7684\u8fc7\u7a0b\u4e2d\uff0c\u6211\u4eec\u7ecf\u5e38\u9700\u8981\u67e5\u770b\u7cfb\u7edf\u7684\u7248\u672c\u3001CPU\u4fe1\u606f\u3001\u5185\u5b58\u60c5\u51b5\u7b49\u57fa\u672c\u7cfb\u7edf\u4fe1\u606f\u3002\u5bf9\u4e8eLinux\u7528\u6237\u6765\u8bf4\uff0c\u6709\u4e00\u4e2a\u795e\u5947\u7684\u547d\u4ee4\u53ef\u4ee5\u8f7b\u677e\u83b7\u53d6\u8fd9\u4e9b\u4fe1\u606f\uff0c\u90a3\u5c31\u662f\u201cuname\u201d\u3002\u901a\u8fc7\u7b80\u5355\u7684\u51e0\u4e2a\u53c2\u6570\uff0c\u6211\u4eec\u53ef\u4ee5\u4e00\u952e\u83b7\u53d6\u5230\u5173\u4e8e\u64cd\u4f5c\u7cfb\u7edf\u7684\u4e00\u5207\u3002<\/p>\n

1. uname -a\uff1a\u5168\u9762\u4e86\u89e3\u4f60\u7684\u64cd\u4f5c\u7cfb\u7edf<\/b><\/p>\n

\u9996\u5148\uff0c\u8ba9\u6211\u4eec\u6765\u4ecb\u7ecd\u6700\u57fa\u672c\u4e5f\u662f\u6700\u5e38\u7528\u7684uname\u547d\u4ee4\u53c2\u6570\u4e4b\u4e00\uff1a\u201c-a\u201d\u3002\u901a\u8fc7\u5728\u7ec8\u7aef\u8f93\u5165\u201cuname -a\u201d\uff0c\u4f60\u5c06\u83b7\u5f97\u4e00\u4e2a\u5173\u4e8e\u4f60\u7684\u64cd\u4f5c\u7cfb\u7edf\u6700\u8be6\u7ec6\u7684\u4fe1\u606f\u6982\u89c8\u3002\u8fd9\u5305\u62ec\u5185\u6838\u7248\u672c\u3001\u4e3b\u673a\u540d\u3001\u5904\u7406\u5668\u67b6\u6784<\/a>\u7b49\u7b49\u3002\u6bd4\u5982\uff0c\u5728\u4e00\u4e2a\u8fd0\u884cUbuntu 20.04 LTS\u7248\u672c\u7684\u7cfb\u7edf\u4e0a\uff0c\u4f60\u53ef\u80fd\u4f1a\u770b\u5230\u7c7b\u4f3c\u4e8e\u4ee5\u4e0b\u8f93\u51fa\uff1a<\/p>\n

\n

\nLinux ubuntu 5.4.0-77-generic #86-Ubuntu SMP Thu Jun 17 02:35:03 UTC 2021 x86_64 x86_64 x86_64 GNU\/Linux\n<\/pre>\n<\/p>\n

2. uname -r\uff1a\u5feb\u901f\u4e86\u89e3\u5185\u6838\u7248\u672c<\/b><\/p>\n

\u5982\u679c\u4f60\u53ea\u5173\u5fc3\u5185\u6838\u7248\u672clinux\u64cd\u4f5c\u7cfb\u7edf\u7b80\u4ecb\uff0c\u90a3\u4e48\u53ef\u4ee5\u4f7f\u7528\u201c-r\u201d\u53c2\u6570\u3002\u8f93\u5165\u201cuname -r\u201d\u540e\uff0c\u4f60\u5c06\u53ea\u4f1a\u770b\u5230\u5185\u6838\u7248\u672c\u53f7\u3002\u4f8b\u5982\uff0c\u5728\u4e0a\u8ff0\u4f8b\u5b50\u4e2d\uff0c\u8f93\u51fa\u4e3a\u201c5.4.0-77-generic\u201d\u3002<\/p>\n

3. uname -m\uff1a\u63a2\u7d22\u5904\u7406\u5668\u67b6\u6784<\/b><\/p>\n

\u6709\u65f6\u5019\uff0c\u6211\u4eec\u9700\u8981\u4e86\u89e3\u7cfb\u7edf\u7684\u5904\u7406\u5668\u67b6\u6784\uff0c\u4ee5\u4fbf\u4e0b\u8f7d\u9002\u7528\u4e8e\u7279\u5b9a\u67b6\u6784\u7684\u8f6f\u4ef6\u5305\u3002\u901a\u8fc7\u4f7f\u7528\u201c-m\u201d\u53c2\u6570\uff0c\u4f60\u53ef\u4ee5\u5feb\u901f\u83b7\u53d6\u8fd9\u4e9b\u4fe1\u606f\u3002\u6bd4\u5982\uff0c\u5728\u4e00\u4e2a\u57fa\u4e8ex86_64\u67b6\u6784\u7684\u7cfb\u7edf\u4e0a\uff0c\u4f60\u5c06\u770b\u5230\u8f93\u51fa\u4e3a\u201cx86_64\u201d\u3002<\/p>\n

4. uname -o\uff1a\u53d1\u73b0\u64cd\u4f5c\u7cfb\u7edf\u5382\u5546<\/b><\/p>\n

\u5982\u679c\u4f60\u60f3\u77e5\u9053\u4f60\u7684Linux\u53d1\u884c\u7248\u662f\u7531\u54ea\u4e2a\u5382\u5546\u63d0\u4f9b\u7684\uff0c\u53ef\u4ee5\u4f7f\u7528\u201c-o\u201d\u53c2\u6570\u3002\u8fd9\u5c06\u663e\u793a\u64cd\u4f5c\u7cfb\u7edf\u7684\u5382\u5546\u4fe1\u606f\u3002\u4f8b\u5982\uff0c\u5728Ubuntu\u7cfb\u7edf\u4e0alinux\u663e\u793a\u76ee\u524d\u7684\u7248\u672c\u7b49\u7cfb\u7edf\u4fe1\u606f\u7684\u547d\u4ee4\u662f<\/strong>\uff0c\u4f60\u53ef\u80fd\u4f1a\u770b\u5230\u8f93\u51fa\u4e3a\u201cGNU\/Linux\u201d\u3002<\/p>\n

5. uname -s\uff1a\u5bfb\u627e\u64cd\u4f5c\u7cfb\u7edf\u540d\u79f0<\/b><\/p>\n

\u5728\u6709\u4e9b\u60c5\u51b5\u4e0b\uff0c\u6211\u4eec\u53ea\u9700\u8981\u77e5\u9053\u64cd\u4f5c\u7cfb\u7edf\u7684\u540d\u79f0\u800c\u4e0d\u662f\u7248\u672c\u53f7\u6216\u5176\u4ed6\u8be6\u7ec6\u4fe1\u606f\u3002\u4f7f\u7528\u201c-s\u201d\u53c2\u6570\u53ef\u4ee5\u8f7b\u677e\u83b7\u53d6\u5230\u64cd\u4f5c\u7cfb\u7edf\u540d\u79f0\u3002\u6bd4\u5982\uff0c\u5728Ubuntu\u7cfb\u7edf\u4e0a\uff0c\u4f60\u5c06\u770b\u5230\u8f93\u51fa\u4e3a\u201cLinux\u201d\u3002<\/p>\n

6. uname -p\uff1a\u53d1\u73b0CPU\u7c7b\u578b<\/b><\/p>\n

\u5982\u679c\u4f60\u5bf9CPU\u7c7b\u578b\u611f\u5174\u8da3\uff0c\u53ef\u4ee5\u4f7f\u7528\u201c-p\u201d\u53c2\u6570\u3002\u8fd9\u5c06\u663e\u793aCPU\u7c7b\u578b\u4fe1\u606f\u3002\u4f8b\u5982\uff0c\u5728\u4e00\u4e2ax86_64\u67b6\u6784\u7684\u7cfb\u7edf\u4e0alinux\u663e\u793a\u76ee\u524d\u7684\u7248\u672c\u7b49\u7cfb\u7edf\u4fe1\u606f\u7684\u547d\u4ee4\u662f<\/strong>\uff0c\u8f93\u51fa\u4e3a\u201cx86_64\u201d\u3002<\/p>\n

7. uname -v\uff1a\u4e86\u89e3\u5185\u6838\u7248\u672c\u8be6\u7ec6\u4fe1\u606f<\/b><\/p>\n

\u9664\u4e86\u57fa\u672c\u7684\u5185\u6838\u7248\u672c\u53f7\u5916\uff0c\u6709\u65f6\u5019\u6211\u4eec\u8fd8\u60f3\u4e86\u89e3\u66f4\u591a\u5173\u4e8e\u5185\u6838\u7248\u672c\u7684\u8be6\u7ec6\u4fe1\u606f\u3002\u901a\u8fc7\u4f7f\u7528\u201c-v\u201d\u53c2\u6570\uff0c\u6211\u4eec\u53ef\u4ee5\u83b7\u53d6\u66f4\u591a\u6709\u5173\u5185\u6838\u7248\u672c\u7684\u4fe1\u606f\u3002\u4f8b\u5982\uff0c\u5728\u4e00\u4e2aUbuntu\u7cfb\u7edf\u4e0a\uff0c\u4f60\u53ef\u80fd\u4f1a\u770b\u5230\u8f93\u51fa\u4e3a\u201c#86-Ubuntu SMP Thu Jun 17 02:35:03 UTC 2021\u201d\u3002<\/p>\n

\u901a\u8fc7\u4ee5\u4e0a7\u4e2a\u53c2\u6570\u7684\u4ecb\u7ecd\uff0c\u76f8\u4fe1\u4f60\u5df2\u7ecf\u638c\u63e1\u4e86\u5982\u4f55\u4f7f\u7528\u201cuname\u201d\u547d\u4ee4\u6765\u83b7\u53d6\u5173\u4e8eLinux\u7cfb\u7edf\u7684\u5404\u79cd\u4fe1\u606f\u3002\u65e0\u8bba\u662f\u65e5\u5e38\u4f7f\u7528\u8fd8\u662f\u7cfb\u7edf\u6545\u969c\u6392\u67e5\u9e1f\u54e5\u7684linux\u79c1\u623f\u83dc\uff0c\u8fd9\u4e9b\u4fe1\u606f\u90fd\u5c06\u5bf9\u4f60\u6709\u6240\u5e2e\u52a9\u3002\u8bb0\u4f4f\uff0cLinux\u7ec8\u7aef\u662f\u4e00\u4e2a\u5f3a\u5927\u7684\u5de5\u5177\uff0c\u901a\u8fc7\u5b66\u4e60\u548c\u638c\u63e1\u5e38\u7528\u547d\u4ee4\uff0c\u4f60\u5c06\u66f4\u52a0\u9ad8\u6548\u5730\u4f7f\u7528\u64cd\u4f5c\u7cfb\u7edf\u3002<\/p>\n

\u603b\u4e4b\uff0c\u901a\u8fc7uname\u547d\u4ee4\uff0c\u6211\u4eec\u53ef\u4ee5\u8f7b\u677e\u4e86\u89e3\u5230\u5173\u4e8e\u64cd\u4f5c\u7cfb\u7edf\u7684\u5404\u79cd\u4fe1\u606f\uff0c\u5305\u62ec\u7248\u672c\u3001CPU\u7c7b\u578b\u3001\u5185\u6838\u8be6\u7ec6\u4fe1\u606f\u7b49\u7b49\u3002\u5b83\u662fLinux\u7528\u6237\u5fc5\u5907\u7684\u4e00\u9879\u6280\u80fd\uff0c\u65e0\u8bba\u662f\u65e5\u5e38\u4f7f\u7528\u8fd8\u662f\u6545\u969c\u6392\u67e5\u90fd\u975e\u5e38\u6709\u7528\u3002\u5e0c\u671b\u901a\u8fc7\u672c\u6587\u7684\u4ecb\u7ecd\uff0c\u80fd\u591f\u5e2e\u52a9\u8bfb\u8005\u66f4\u597d\u5730\u638c\u63e1\u8fd9\u4e00\u6280\u5de7\uff0c\u5e76\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\u53d1\u6325\u4f5c\u7528\u3002\u8ba9\u6211\u4eec\u4e00\u8d77\u5728Linux\u7ec8\u7aef\u4e2d\u7545\u6e38\u5427\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"

Linux\u7ec8\u7aef\u63ed\u79d8\uff1a\u4e00\u952e\u638c\u63e1\u7cfb\u7edf\u4fe1\u606f\u7684\u795e\u5947\u547d\u4ee4\u5728\u6709\u4e9b\u60c5\u51b5\u4e0b\uff0c\u6211\u4eec\u53ea\u9700\u8981\u77e5\u9053\u64cd\u4f5c\u7cfb\u7edf\u7684\u540d\u79f0\u800c\u4e0d\u662f\u7248\u672c\u53f7\u6216\u5176\u4ed6\u8be6\u7ec6\u4fe1\u606f\u3002\u901a\u8fc7\u4ee5\u4e0a7\u4e2a\u53c2\u6570\u7684\u4ecb\u7ecd\uff0c\u76f8\u4fe1\u4f60\u5df2\u7ecf\u638c\u63e1\u4e86\u5982\u4f55\u4f7f\u7528\u201cuname\u201d\u547d\u4ee4\u6765\u83b7\u53d6\u5173\u4e8eLinux\u7cfb\u7edf\u7684\u5404\u79cd\u4fe1\u606f\u3002\u603b\u4e4b\uff0c\u901a\u8fc7uname\u547d\u4ee4\uff0c\u6211\u4eec\u53ef\u4ee5\u8f7b\u677e\u4e86\u89e3\u5230\u5173\u4e8e\u64cd\u4f5c\u7cfb\u7edf\u7684\u5404\u79cd\u4fe1\u606f\uff0c\u5305\u62ec\u7248\u672c\u3001CPU\u7c7b\u578b\u3001\u5185\u6838\u8be6\u7ec6\u4fe1\u606f\u7b49\u7b49\u3002<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[988],"tags":[999],"class_list":["post-277559","post","type-post","status-publish","format-standard","hentry","category-tougao","tag-999"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/277559","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=277559"}],"version-history":[{"count":0,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/277559\/revisions"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=277559"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=277559"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=277559"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}