{"id":277916,"date":"2023-07-18T04:05:22","date_gmt":"2023-07-17T20:05:22","guid":{"rendered":"https:\/\/lrxjmw.cn\/lbbzkhhmmlds.html"},"modified":"2023-07-18T04:05:22","modified_gmt":"2023-07-17T20:05:22","slug":"lbbzkhhmmlds","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/lbbzkhhmmlds.html","title":{"rendered":"Linux\u7248\u672c\u67e5\u770b\u548c\u7ea2\u5e3d\u547d\u4ee4\u7684\u4f7f\u7528\u65b9\u6cd5\uff01\u547d\u4ee4\uff01"},"content":{"rendered":"

\u60f3\u8981\u5728Linux<\/a>\u7cfb\u7edf<\/a>\u4e2d\u67e5\u770b\u7248\u672c\u4fe1\u606f\uff1f\u60f3\u8981\u4e86\u89e3\u7ea2\u5e3d\u547d\u4ee4<\/a>\u7684\u4f7f\u7528\u65b9\u5f0f\uff1f\u8fd9\u4e48\u4f60\u6765\u5bf9\u5730\u65b9\u4e86\uff01\u672c\u6587\u5c06\u4e3a\u4f60\u8be6\u5c3d\u4ecb\u7ecdLinux\u7248\u672c\u67e5\u770b\u548c\u7ea2\u5e3d\u547d\u4ee4\u7684\u4f7f\u7528linux\u7248\u672c\u67e5\u770b\u7ea2\u5e3d\u547d\u4ee4\u7ea2\u5e3dlinux\u7248\u672c\u67e5\u770b\u547d\u4ee4<\/strong>\uff0c\u8ba9\u4f60\u8f7b\u677e\u628a\u63e1\u8fd9\u79cd\u65b9\u6cd5\u3002<\/p>\n

1.\u67e5\u770b\u5185\u6838\u7248\u672c<\/p>\n

2.\u67e5\u770b\u64cd\u4f5c\u7cfb\u7edf\u7248\u672c<\/p>\n

3.\u67e5\u770b\u53d1\u884c\u7248\u7248\u672c<\/p>\n

4.\u67e5\u770bCPU\u4fe1\u606f<\/p>\n

5.\u67e5\u770b\u786c\u789f\u7a7a\u95f4<\/p>\n

linux\u4e0bgcc\u7248\u672c\u67e5\u770b\u547d\u4ee4_linux \u67e5\u770b\u7cfb\u7edf\u7248\u672c\u547d\u4ee4_linux\u7248\u672c\u67e5\u770b\u7ea2\u5e3d\u547d\u4ee4<\/p>\n

6.\u67e5\u770b\u7cfb\u7edf\u542f\u52a8\u65f6\u95f4<\/p>\n

7.\u67e5\u770b\u8fdb\u7a0b\u72b6\u6001<\/p>\n

8.\u67e5\u770b\u7f51\u8def\u8054\u63a5\u72b6\u6001<\/p>\n

9.\u67e5\u770b\u7528\u6237\u4fe1\u606f<\/p>\n

10.\u67e5\u770b\u65e5\u5fd7\u6587\u4ef6<\/p>\n

\u5728Linux\u7cfb\u7edf\u4e2dlinux\u57f9\u8bad\uff0c\u67e5\u770b\u7248\u672c\u4fe1\u606f\u662f\u4e00\u4e2a\u57fa\u7840\u800c\u91cd\u8981\u7684\u6280\u80fd\u3002\u9996\u5148\uff0c\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7uname\u547d\u4ee4\u67e5\u770b\u5185\u6838\u7248\u672c\u3002\u5728\u7ec8\u7aef\u4e2d\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\u5373\u53ef\uff1a<\/p>\n

\n

\nuname -r\n<\/pre>\n<\/p>\n

\u63a5\u51fa\u6765\uff0c\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528lsb_release\u547d\u4ee4\u6765\u67e5\u770b\u64cd\u4f5c\u7cfb\u7edf\u7248\u672c\u3002\u5728\u7ec8\u7aef\u4e2d\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\u5373\u53ef\uff1a<\/p>\n

linux \u67e5\u770b\u7cfb\u7edf\u7248\u672c\u547d\u4ee4_linux\u7248\u672c\u67e5\u770b\u7ea2\u5e3d\u547d\u4ee4_linux\u4e0bgcc\u7248\u672c\u67e5\u770b\u547d\u4ee4<\/p>\n

\n

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

\u5047\u5982\u4f60\u60f3\u6653\u5f97\u81ea\u5df1\u4f7f\u7528\u7684\u662f\u90a3\u4e2a\u53d1\u884c\u7248\u7ea2\u5e3dlinux\u7248\u672c\u67e5\u770b\u547d\u4ee4<\/strong>\uff0c\u8fd9\u4e48\u53ef\u4ee5\u4f7f\u7528cat\/etc\/issue\u6216cat\/etc\/*-release\u547d\u4ee4\u6765\u67e5\u8be2\u3002\u8fd9\u79cd\u547d\u4ee4\u5c06\u663e\u793a\u6240\u6709\u53d1\u884c\u7248\u76f8\u5173\u7684\u4fe1\u606f\u3002<\/p>\n

\u540c\u65f6\uff0c\u6211\u4eec\u8fd8\u53ef\u4ee5\u901a\u8fc7proc\u6587\u4ef6\u7cfb\u7edf\u6765\u67e5\u770bCPU\u4fe1\u606f\u548c\u786c\u789f\u7a7a\u95f4\u3002\u5728\u7ec8\u7aef\u4e2d\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\u5373\u53ef\uff1a<\/p>\n

\n

\ncat \/proc\/cpuinfo\ndf -h\n<\/pre>\n<\/p>\n

\u53e6\u5916linux\u7248\u672c\u67e5\u770b\u7ea2\u5e3d\u547d\u4ee4\uff0c\u67e5\u770b\u7cfb\u7edf\u542f\u52a8\u65f6\u95f4\u4e5f\u662f\u5f88\u6709\u5fc5\u8981\u7684\u3002\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528uptime\u547d\u4ee4\u6765\u67e5\u8be2\u3002\u5728\u7ec8\u7aef\u4e2d\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\u5373\u53ef\uff1a<\/p>\n

\n

\nuptime\n<\/pre>\n<\/p>\n

\u5047\u5982\u4f60\u60f3\u67e5\u770b\u8fdb\u7a0b\u72b6\u6001\uff0c\u8fd9\u4e48\u53ef\u4ee5\u4f7f\u7528ps\u547d\u4ee4\u3002\u5728\u7ec8\u7aef\u4e2d\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\u5373\u53ef\uff1a<\/p>\n

\n

\nps aux\n<\/pre>\n<\/p>\n

\u540c\u65f6\uff0c\u6211\u4eec\u4e5f\u53ef\u4ee5\u4f7f\u7528netstat\u547d\u4ee4\u6765\u67e5\u770b\u7f51\u8def\u8054\u63a5\u72b6\u6001\u3002\u5728\u7ec8\u7aef\u4e2d\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\u5373\u53ef\uff1a<\/p>\n

\n

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

\u63a5\u51fa\u6765linux\u64cd\u4f5c\u7cfb\u7edf\u6559\u7a0b\uff0c\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7w\u6216whoami\u547d\u4ee4\u6765\u67e5\u770b\u5f53\u524d\u7528\u6237\u4fe1\u606f\u3002\u5728\u7ec8\u7aef\u4e2d\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\u5373\u53ef\uff1a<\/p>\n

\n

\nw\nwhoami\n<\/pre>\n<\/p>\n

\u6700\u540e\u600e\u6837\u5b89\u88c5LINUX\uff0c\u6211\u4eec\u8fd8\u53ef\u4ee5\u901a\u8fc7tail\u6216cat\u547d\u4ee4\u6765\u67e5\u770b\u65e5\u5fd7\u6587\u4ef6\u3002\u5728\u7ec8\u7aef\u4e2d\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\u5373\u53ef\uff1a<\/p>\n

\n

\ntail -f\/var\/log\/messages\ncat \/var\/log\/syslog\n<\/pre>\n<\/p>\n

\u901a\u8fc7\u4ee5\u4e0a\u5341\u4e2a\u65b9\u9762\u7684\u4ecb\u7ecd\uff0c\u76f8\u4fe1\u4f60\u4eec\u5df2\u7136\u521d\u6b65\u628a\u63e1\u4e86Linux\u7248\u672c\u67e5\u770b\u548c\u7ea2\u5e3d\u547d\u4ee4\u7684\u4f7f\u7528\u65b9\u5f0f\u3002\u5176\u5b9e\uff0c\u5728\u5b9e\u9645\u5e94\u7528\u8fc7\u7a0b\u4e2dlinux\u6e90\u4ee3\u7801\u5256\u6790\uff0c\u8fd8\u6709\u597d\u591a\u5176\u4ed6\u7684\u76f8\u5173\u65b9\u6cd5\u987b\u8981\u628a\u63e1\u548c\u719f\u6089\u3002\u5e0c\u671b\u672c\u6587\u5bf9\u4f60\u4eec\u6709\u6240\u5e2e\u52a9\uff01<\/p>\n

\u4e0e\u8be5\u529f\u80fd\u76f8\u5173\u7684Linux\u547d\u4ee4\uff1a<\/p>\n","protected":false},"excerpt":{"rendered":"

\u60f3\u8981\u4e86\u89e3\u7ea2\u5e3d\u547d\u4ee4\u7684\u4f7f\u7528\u65b9\u6cd5\uff1f\u672c\u6587\u5c06\u4e3a\u4f60\u8be6\u7ec6\u4ecb\u7ecdLinux\u7248\u672c\u67e5\u770b\u548c\u7ea2\u5e3d\u547d\u4ee4\u7684\u4f7f\u7528linux\u7248\u672c\u67e5\u770b\u7ea2\u5e3d\u547d\u4ee4\uff0c\u8ba9\u4f60\u8f7b\u677e\u638c\u63e1\u8fd9\u4e9b\u6280\u5de7\u3002\u9996\u5148\uff0c\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7uname\u547d\u4ee4\u67e5\u770b\u5185\u6838\u7248\u672c\u3002\u63a5\u4e0b\u6765\uff0c\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528lsb_release\u547d\u4ee4\u6765\u67e5\u770b\u64cd\u4f5c\u7cfb\u7edf\u7248\u672c\u3002\u53e6\u5916linux\u7248\u672c\u67e5\u770b\u7ea2\u5e3d\u547d\u4ee4\uff0c\u67e5\u770b\u7cfb\u7edf\u542f\u52a8\u65f6\u95f4\u4e5f\u662f\u5f88\u6709\u5fc5\u8981\u7684\u3002\u901a\u8fc7\u4ee5\u4e0a\u5341\u4e2a\u65b9\u9762\u7684\u4ecb\u7ecd\uff0c\u76f8\u4fe1\u5927\u5bb6\u5df2\u7ecf\u521d\u6b65\u638c\u63e1\u4e86Linux\u7248\u672c\u67e5\u770b\u548c\u7ea2\u5e3d\u547d\u4ee4\u7684\u4f7f\u7528\u65b9\u6cd5\u3002<\/p>\n","protected":false},"author":1,"featured_media":277917,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[988],"tags":[999],"class_list":["post-277916","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\/277916","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=277916"}],"version-history":[{"count":0,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/277916\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/277917"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=277916"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=277916"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=277916"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}