{"id":290033,"date":"2024-02-18T21:12:50","date_gmt":"2024-02-18T13:12:50","guid":{"rendered":"https:\/\/lrxjmw.cn\/lnhjmyzlcypt.html"},"modified":"2024-02-18T21:12:50","modified_gmt":"2024-02-18T13:12:50","slug":"lnhjmyzlcypt","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/lnhjmyzlcypt.html","title":{"rendered":"Linux\u5185\u6838\uff1a\u89e3\u5bc6\u8fd0\u4f5c\u6d41\u7a0b\u4e0e\u666e\u901a\u67e5\u8be2\u65b9\u5f0f"},"content":{"rendered":"

\u4f5c\u4e3a\u5f00\u6e90\u64cd\u4f5c\u7cfb\u7edf<\/a>Linux<\/a>\u7684\u6838\u5fc3\u7ec4\u6210\u90e8\u5206\uff0cLinux\u5185\u6838\u65e0\u7591\u610f\u4e49\u975e\u51e1\u3002\u65e0\u8bba\u662f\u7814\u53d1\u4eba\u5458\u8fd8\u662f\u7ba1\u7406\u4eba\u5458linux \u5185\u6838\u67e5\u8be2<\/strong>\uff0c\u90fd\u6709\u5fc5\u8981\u5bf9\u5176\u8fd0\u8425\u89c4\u5f8b\u53ca\u529f\u80fd\u7279\u6027\u6709\u6240\u638c\u63e1\u3002\u672c\u7bc7\u6587\u7ae0\u65e8\u5728\u4e3a\u5927\u5bb6\u6df1\u5ea6\u89e3\u8bfbLinux\u5185\u6838\u4e4b\u8c1c\uff0c\u8be6\u5c3d\u5c55\u793a\u5176\u8fd0\u4f5c\u6d41\u7a0b\u4e0e\u666e\u901a\u67e5\u8be2\u65b9\u5f0f\u3002<\/p>\n

1.\u5185\u6838\u7b80\u4ecb<\/b><\/p>\n

\u9996\u5148\uff0c\u8bf7\u5141\u8bb8\u6211\u4e3a\u60a8\u89e3\u91ca\u4e00\u4e0b\u4f55\u8c13Linux\u5185\u6838\u3002\u4f5c\u4e3a\u64cd\u4f5c\u7cfb\u7edf\u7684\u7075\u9b42\u6240\u5728\uff0cLinux\u5185\u6838\u80a9\u8d1f\u7740\u7ba1\u7406\u786c\u4ef6\u8bbe\u5907\u3001\u534f\u8c03\u4efb\u52a1\u8fdb\u7a0b\u4ee5\u53ca\u7ef4\u62a4\u6587\u4ef6\u7cfb\u7edf\u7b49\u91cd\u8981\u804c\u8d23\u3002\u6b64\u7a0b\u5e8f\u7531Linus Torvalds\u4ee5\u53ca\u8bf8\u591a\u8d21\u732e\u8005\u5171\u540c\u7814\u53d1\uff0c\u5e76\u4f9d\u636eGPL\u534f\u8bae\u8fdb\u884c\u4f20\u64ad\u3002<\/p>\n

2.\u5185\u6838\u7248\u672c\u67e5\u8be2<\/b><\/p>\n

\u77e5\u9053\u60a8\u73b0\u5728\u7528\u7684\u54ea\u4e2a Linux \u5185\u6838\u7248\u672c\u662f\u5f88\u6709\u5fc5\u8981\u7684linux \u5185\u6838\u67e5\u8be2<\/strong>\uff0c\u53ea\u9700\u5728\u7ec8\u7aef\u8f93\u5165\u4e0b\u9762\u8fd9\u6761\u547d\u4ee4<\/a>\u5373\u53ef\u77e5\u6653\uff1a<\/p>\n

```<\/p>\n

uname -r<\/p>\n

\u6b64\u6307\u4ee4\u5c06\u8f93\u51fa\u4e00\u4e2a\u7248\u672c\u53f7\uff0c\u5982\"5.4.0-42-generic\"\u8fd9\u6837\u3002<\/p>\n

3.\u5185\u6838\u53c2\u6570\u67e5\u8be2<\/b><\/p>\n

\u5728\u60a8\u7684Linux\u7cfb\u7edf\u4e2d\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528\/sys\u76ee\u5f55\u4e2d\u7684\u76f8\u5173\u6587\u4ef6\u8f7b\u677e\u67e5\u8be2\u548c\u8c03\u6574\u8bf8\u591a\u5185\u6838\u8bbe\u7f6e\u53c2\u6570\u5462\u3002\u60f3\u8981\u4e86\u89e3TCP\/IP\u534f\u8bae\u6808\u7684\u6700\u5927\u8fde\u63a5\u6570\u9650\u5236\u5417\uff1f\u5f88\u7b80\u5355\u54e6\uff0c\u53ea\u9700\u8f93\u5165\u4e0b\u9762\u7684\u547d\u4ee4\u5373\u53ef\uff1a<\/p>\n

\u5c0a\u656c\u7684\u8bfb\u8005\uff0c\u8bf7\u60a8\u5c1d\u8bd5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u67e5\u770b\u7cfb\u7edf\u4e2d\u53ef\u7528\u7684TCP\u6700\u5927SYN\u961f\u5217\u957f\u5ea6\uff1a<\/p>\n

\u8be5\u547d\u4ee4\u5c06\u8fd4\u56de\u4e00\u4e2a\u6570\u5b57\uff0c\u8868\u793a\u5f53\u524d\u7684\u6700\u5927\u8fde\u63a5\u6570\u9650\u5236\u3002<\/p>\n

4.\u5185\u6838\u6a21\u5757\u67e5\u8be2<\/b><\/p>\n

\u5185\u6838\u6a21\u5757\u662f\u4e00\u79cd\u53ef\u7075\u6d3b\u63d2\u5165\u4e0e\u79fb\u9664\u7684\u8f6f\u4ef6\u90e8\u4ef6\uff0c\u5b83\u80fd\u591f\u4e30\u5bcc\u589e\u5f3a\u5185\u6838\u529f\u80fd\u3002\u82e5\u60f3\u4e86\u89e3\u5f53\u524d\u7cfb\u7edf\u5df2\u5b89\u88c5\u7684\u5185\u6838\u6a21\u5757\u4fe1\u606f\uff0c\u60a8\u53ea\u9700\u8fd0\u884c\u5982\u4e0b\u6307\u4ee4\u5373\u53ef\uff1a<\/p>\n

lsmod<\/p>\n

\u8be5\u547d\u4ee4\u5c06\u5217\u51fa\u5f53\u524d\u52a0\u8f7d\u7684\u6240\u6709\u5185\u6838\u6a21\u5757\u53ca\u5176\u76f8\u5173\u4fe1\u606f\u3002<\/p>\n

5.\u5185\u6838\u65e5\u5fd7\u67e5\u8be2<\/b><\/p>\n

\u5185\u6838\u67e5\u8be2\u5f53\u524dcpu_\u67e5\u8be2\u5185\u6838\u7248\u672clinux_linux \u5185\u6838\u67e5\u8be2<\/p>\n

\u6211\u4eec\u5728\u6b64\u5f3a\u70c8\u5efa\u8bae\u60a8\u5173\u6ce8\u5185\u6838\u65e5\u5fd7\u6240\u8bb0\u5f55\u7684\u5404\u79cd\u7cbe\u786e\u65e0\u8bef\u7684\u7cfb\u7edf\u8fd0\u884c\u4fe1\u606f\uff0c\u5305\u62ec\u5e38\u89c1\u7684\u9519\u8bef\u3001\u8b66\u544a\u4e0e\u8c03\u8bd5\u4fe1\u606f\u3002\u4e3a\u4e86\u65b9\u4fbf\u67e5\u9605\uff0c\u4ee5\u4e0b\u662f\u76f8\u5173\u547d\u4ee4\u4f9b\u60a8\u53c2\u8003\uff1a<\/p>\n

dmesg<\/p>\n

\u8be5\u547d\u4ee4\u5c06\u8f93\u51fa\u6700\u8fd1\u53d1\u751f\u7684\u5185\u6838\u4e8b\u4ef6\u548c\u6d88\u606f\u3002<\/p>\n

6.\u5185\u6838\u6e90\u4ee3\u7801\u67e5\u8be2<\/b><\/p>\n

\u82e5\u60a8\u5e0c\u671b\u66f4\u5168\u9762\u5730\u4e86\u89e3Linux\u5185\u6838\u7684\u5de5\u4f5c\u539f\u7406\uff0c\u4e0d\u59a8\u67e5\u9605\u5176\u6e90\u4ee3\u7801\u3002\u8fd9\u4efd\u5b9d\u8d35\u8d44\u6599\u5df2\u5728\u7f51\u7ad9\u4e0a\u4f9b\u60a8\u514d\u8d39\u4e0b\u8f7d\u5e76\u67e5\u770b\uff0c\u540c\u65f6\u60a8\u4ea6\u53ef\u5229\u7528Git\u8fd9\u4e00\u5de5\u5177\u5e2e\u52a9\u60a8\u9ad8\u6548\u5730\u83b7\u53d6\u6587\u4ef6\u3002<\/p>\n

\u5185\u6838\u67e5\u8be2\u5f53\u524dcpu_linux \u5185\u6838\u67e5\u8be2_\u67e5\u8be2\u5185\u6838\u7248\u672clinux<\/p>\n

7.\u5185\u6838\u6587\u6863\u67e5\u8be2<\/b><\/p>\n

\u6211\u4eec\u8fd9\u91cc\u4e3a\u60a8\u51c6\u5907\u4e86\u4e30\u5bcc\u591a\u6837\u7684\u6587\u6863\u53c2\u8003\u8d44\u6599\uff0c\u6bd4\u5982\u5f00\u53d1\u8005\u6559\u7a0b\u3001API\u8bf4\u660e\u4e66\u4ee5\u53ca\u9a71\u52a8\u7a0b\u5e8f\u5f00\u53d1\u6307\u5bfc\u7b49\u7b49\uff0c\u5b83\u4eec\u4f1a\u5bf9\u60a8\u6df1\u5165\u4e86\u89e3\u5e76\u5f00\u53d1Linux\u5185\u6838\u4ea7\u751f\u5f88\u5927\u7684\u52a9\u529b\u3002\u5982\u679c\u60f3\u67e5\u8be2\u5df2\u7ecf\u5b89\u88c5\u7684\u5185\u6838\u6587\u6863\uff0c\u53ea\u9700\u4f7f\u7528\u4e0b\u5217\u547d\u4ee4\u5373\u53ef\uff1a<\/p>\n

\u5c0a\u656c\u7684\u8bfb\u8005\u4eec\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528 dpkg -L linux-doc \u5e76\u5728\u8f93\u51fa\u4e2d\u67e5\u627e\u4ee5\/usr\/share\/doc\/linux-doc\/\u5f00\u5934\u7684\u6587\u4ef6\u3002<\/p>\n

8.\u5185\u6838\u914d\u7f6e\u67e5\u8be2<\/b><\/p>\n

\u5185\u6838\u53c2\u6570\u53ef\u968f\u60a8\u6240\u9700\u800c\u8c03\u6821\u54df\uff01\u82e5\u60f3\u67e5\u770b\u73b0\u6b63\u4f7f\u7528\u7684\u5185\u6838\u8bbe\u5b9a\u503c\uff0c\u53ef\u4f7f\u7528\u5982\u4e0b\u65b9\u6cd5\u54e6\uff1a<\/p>\n

zcat \/proc\/config.gz<\/p>\n

\u8be5\u547d\u4ee4\u5c06\u8f93\u51fa\u5f53\u524d\u5185\u6838\u7684\u914d\u7f6e\u9009\u9879\u3002<\/p>\n

9.\u5185\u6838\u6f0f\u6d1e<\/a>\u67e5\u8be2<\/b><\/p>\n

\u5f53\u7136\u4e86\uff0cLinux \u5185\u6838\u5728\u4f7f\u7528\u8fc7\u7a0b\u4e2d\u96be\u514d\u4f1a\u906d\u9047\u4e00\u4e9b\u5c0f\u5c0f\u7684\u6f0f\u6d1e\u53ca\u5b89\u5168\u95ee\u9898\u3002\u8bf7\u60a8\u8010\u7740\u6027\u5b50\uff0c\u5c3d\u53ef\u80fd\u5730\u8fdb\u884c\u81ea\u6211\u68c0\u67e5\u5e76\u6ce8\u610f\u5df2\u77e5\u7684\u5185\u6838\u6f0f\u6d1e\u4ee5\u53ca\u5b89\u5168\u901a\u544a\u3002\u83b7\u53d6\u76f8\u5173\u4fe1\u606f\u6709\u4e24\u4e2a\u9014\u5f84\uff0c\u4e00\u662f\u6301\u7eed\u5173\u6ce8 Linux \u5185\u6838\u7684\u7535\u5b50\u90ae\u4ef6\u5217\u8868\uff1b\u4e8c\u662f\u76f4\u63a5\u70b9\u5f00 CVE(\u901a\u7528\u6f0f\u6d1e\u4e0e\u516c\u544a)\u6570\u636e\u5e93\uff0c\u5176\u5c06\u5b9e\u65f6\u63a8\u9001\u6700\u65b0\u7684\u76f8\u5173\u8d44\u8baf\u3002<\/p>\n

10.\u5185\u6838\u793e\u533a\u67e5\u8be2<\/b><\/p>\n

\u82e5\u60a8\u5bf9\u4e8eLinux\u5185\u6838\u6709\u6240\u7591\u60d1\u6216\u8005\u662f\u60f3\u4e0e\u4eba\u5171\u540c\u63a2\u8ba8\u76f8\u5173\u95ee\u9898\uff0c\u8bf7\u79ef\u6781\u53c2\u4e0eLinux\u5185\u6838\u793e\u533a\u7684\u8ba8\u8bba\u54e6\uff01\u60a8\u53ef\u4ee5\u901a\u8fc7\u53c2\u4e0e\u90ae\u7bb1\u5217\u8868\u3001\u8bba\u575b\u6216\u662fIRC\u9891\u9053\u7684\u54a8\u8be2\u548c\u89e3\u7b54\uff0c\u5206\u4eab\u81ea\u5df1\u7684\u89c1\u89e3\u5e76\u76f8\u4e92\u5b66\u4e60\uff0c\u8fd9\u6837\u60a8\u5c31\u80fd\u591f\u5f97\u5230\u4e30\u5bcc\u7684\u7ecf\u9a8c\u4ee5\u53ca\u6781\u5927\u7684\u5e2e\u52a9\u5566~<\/p>\n

\u300a\u6df1\u5165\u7406\u89e3Linux\u5185\u6838\u67e5\u8be2\u5256\u6790\u300b\u65e8\u5728\u4e3a\u5404\u4f4d\u8bfb\u8005\u63ed\u793aLinux\u5185\u6838\u5de5\u4f5c\u673a\u5236\u4e0e\u8be6\u7ec6\u67e5\u8be2\u65b9\u5f0f\u3002\u638c\u63e1\u6b64\u77e5\u8bc6\u70b9\u4e0d\u4ec5\u80fd\u591f\u52a9\u529b\u63d0\u5347\u7cfb\u7edf\u8fd0\u7ef4\u53ca\u5f00\u53d1\u6548\u7387linux\u4e2d\u6587\u4e71\u7801\uff0c\u66f4\u80fd\u59a5\u5584\u89e3\u51b3\u5404\u7c7b\u95ee\u9898\u3002\u5e0c\u671b\u9605\u8bfb\u540elinux\u4fee\u6539\u6587\u4ef6\u540d\uff0c\u60a8\u5728Linux\u5185\u6838\u67e5\u8be2\u4e0a\u6709\u6240\u6536\u83b7\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"

\u672c\u7bc7\u6587\u7ae0\u65e8\u5728\u4e3a\u5927\u5bb6\u6df1\u5ea6\u89e3\u8bfbLinux\u5185\u6838\u4e4b\u8c1c\uff0c\u8be6\u5c3d\u5c55\u793a\u5176\u8fd0\u4f5c\u6d41\u7a0b\u4e0e\u666e\u901a\u67e5\u8be2\u65b9\u5f0f\u3002\u5185\u6838\u6a21\u5757\u67e5\u8be2\u8be5\u547d\u4ee4\u5c06\u5217\u51fa\u5f53\u524d\u52a0\u8f7d\u7684\u6240\u6709\u5185\u6838\u6a21\u5757\u53ca\u5176\u76f8\u5173\u4fe1\u606f\u3002\u5185\u6838\u6e90\u4ee3\u7801\u67e5\u8be2\u82e5\u60a8\u5e0c\u671b\u66f4\u5168\u9762\u5730\u4e86\u89e3Linux\u5185\u6838\u7684\u5de5\u4f5c\u539f\u7406\uff0c\u4e0d\u59a8\u67e5\u9605\u5176\u6e90\u4ee3\u7801\u3002<\/p>\n","protected":false},"author":1,"featured_media":290034,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[988],"tags":[999],"class_list":["post-290033","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\/290033","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=290033"}],"version-history":[{"count":0,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/290033\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/290034"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=290033"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=290033"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=290033"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}