{"id":62647,"date":"2026-01-20T13:42:11","date_gmt":"2026-01-20T05:42:11","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/62647.html"},"modified":"2026-01-20T13:42:11","modified_gmt":"2026-01-20T05:42:11","slug":"%ef%bc%9clinux%e5%9f%ba%e7%a1%80%e7%ac%ac3%e9%9b%86%ef%bc%9e%e6%b8%85%e5%8d%8e%e9%95%9c%e5%83%8f%e6%ba%90%e9%85%8d%e7%bd%ae%e7%bd%91%e7%bb%9c%e5%9f%ba%e7%a1%80%e6%a6%82%e5%bf%b5%e7%90%86%e8%a7%a3ip","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/62647.html","title":{"rendered":"\uff1cLinux\u57fa\u7840\u7b2c3\u96c6\uff1e\u6e05\u534e\u955c\u50cf\u6e90\u914d\u7f6e+\u7f51\u7edc\u57fa\u7840\u6982\u5ff5\u7406\u89e3(IP\u5730\u5740+\u7f51\u5361+\u7f51\u5173+\u5b50\u7f51\u63a9\u7801+DNS...)"},"content":{"rendered":"<h2>\u96f6<\/h2>\n<p>\u66f4\u65b0\u4e2d<br \/>\n\u5148\u770b\u76ee\u5f55<\/p>\n<h2>\u6211\u5728Linux\u5b66\u4e60\u8fc7\u7a0b\u4e2d\u9047\u5230\u7684\u95ee\u9898<\/h2>\n<h3>Linux\u91cc&#034;\u4e0b\u8f7d\u547d\u4ee4&#034;\u548c&#034;\u4e0b\u8f7d\u8f6f\u4ef6\u5305&#034;\u6709\u533a\u522b\u5417<\/h3>\n<p>\u672c\u8d28\u4e0a&#034;\u4e0b\u8f7d\u547d\u4ee4&#034;\u548c&#034;\u4e0b\u8f7d\u8f6f\u4ef6\u5305&#034;\u90fd\u662f\u4e00\u4e2a\u4e1c\u897f,\u6ca1\u6709\u533a\u522b<br \/>\napt install python3\u8fd9\u4e2a\u547d\u4ee4,\u672c\u8d28\u4e0a\u5c31\u662f :<br \/>\n\u4f60\u7684\u7535\u8111\u5411&#034;Linux\u5b98\u65b9\u8f6f\u4ef6\u670d\u52a1\u5668(Linux\u5b98\u65b9\u4ed3\u5e93,\u5b98\u65b9\u670d\u52a1\u7684\u8fdc\u7a0b\u8f6f\u4ef6\u670d\u52a1\u5668)&#034;\u53d1\u9001\u4e0b\u8f7d\u8bf7\u6c42\u2014&gt;\u4e0b\u8f7dPython3\u7684\u8f6f\u4ef6\u5305\u2014&gt;\u81ea\u52a8\u5b89\u88c5\u5230\u4f60\u7684\u7cfb\u7edf\u2014&gt;\u5b89\u88c5\u5b8c\u6210\u540e,\u4f60\u5c31\u53ef\u4ee5\u4f7f\u7528python3\u8fd9\u4e2a\u547d\u4ee4\u4e86<\/p>\n<h3>\u4e3a\u4ec0\u4e48&#034;\u4e0b\u8f7d\u8f6f\u4ef6\u5305&#034;\u4e0e&#034;\u4e0b\u8f7d\u547d\u4ee4&#034;\u6ca1\u6709\u533a\u522b<\/h3>\n<p>\u5148\u8bf4\u4e00\u53e5\u7edd\u5bf9\u6b63\u786e\u7684\u8bdd : \u5728Linux\u4e2d,\u6240\u6709\u7684\u547d\u4ee4,\u672c\u8d28\u90fd\u662f\u8f6f\u4ef6\u5305,\u6240\u6709\u4f60\u80fd\u6267\u884c\u7684\u8f6f\u4ef6\u672c\u8d28\u4e0a\u90fd\u662f\u547d\u4ee4&#8212;&#8212;\u547d\u4ee4\u548c\u8f6f\u4ef6\u662f&#034;\u4e00\u4f53\u4e24\u9762&#034;\u7684\u4e1c\u897f,\u53ea\u662f\u53eb\u6cd5\u4e0d\u4e00\u6837<\/p>\n<p>\u4e0b\u8f7d\u8f6f\u4ef6\u5305 &#061; \u4e3a\u4e86\u83b7\u53d6\u5bf9\u5e94\u7684\u547d\u4ee4<br \/>\n\u80fd\u6267\u884c\u547d\u4ee4 &#061; \u5df2\u7ecf\u5b89\u88c5\u597d\u4e86\u5bf9\u5e94\u7684\u8f6f\u4ef6\u5305<\/p>\n<h3>apt\u4e0b\u8f7d\u8fc7\u7a0b<\/h3>\n<p>\u6211\u4f7f\u7528\u7684Linux\u53d1\u884c\u7248\u662fUbuntu<br \/>\n\u4ee5apt install python3\u4e3a\u4f8b,\u6574\u4e2a\u8fc7\u7a0b\u662f\u8fd9\u6837\u7684 :<\/p>\n<ul>\n<li>\u6211\u7684\u7535\u8111\u5411\u4f4d\u7f6e\u5728\u6b27\u6d32\u7684Ubuntu\u5b98\u65b9\u670d\u52a1\u5668(\u9ed8\u8ba4\u6e90)\u53d1\u9001\u8bf7\u6c42&#8212;&#8212;-(\u51c6\u786e\u6765\u8bf4\u5e94\u8be5\u662f : \u6211\u7684\u7535\u8111\u4f1a\u67e5\u770b\/etc\/apt\/sources\/list\u8fd9\u4e2a\u6587\u4ef6\u4e2d\u7684\u9ed8\u8ba4\u4e0b\u8f7d\u5730\u5740\u662f\u54ea\u91cc,\u5411\u8fd9\u4e2a\u5730\u5740\u7684\u670d\u52a1\u5668\u53d1\u9001\u8bf7\u6c42)<\/li>\n<li>\u4ece\u8fd9\u4e2a\u670d\u52a1\u5668\u4e0b\u8f7dpython3\u5bf9\u5e94\u7684\u5b8c\u6574\u8f6f\u4ef6\u5305&#043;\u6240\u6709\u8fd0\u884c\u4f9d\u8d56<\/li>\n<li>\u81ea\u52a8\u5b8c\u6210\u8f6f\u4ef6\u5305\u7684\u89e3\u538b,\u5b89\u88c5,\u914d\u7f6e<\/li>\n<li>\u5b89\u88c5\u5b8c\u6210\u540e,python3\u547d\u4ee4\u5c31\u53ef\u4ee5\u4f7f\u7528\u4e86<\/li>\n<\/ul>\n<h3>\u4e3a\u4ec0\u4e48\u5728\u56fd\u5185\u4f7f\u7528 \u9ed8\u8ba4\u6e90 \u901f\u5ea6\u6162<\/h3>\n<p>\u6e90&#061;\u8f6f\u4ef6\u4ed3\u5e93\u7684\u670d\u52a1\u5668\u5730\u5740<br \/>\nUbuntu\u9ed8\u8ba4\u6e90&#061;\u6b27\u6d32\u7684Ubuntu\u5b98\u65b9\u670d\u52a1\u5668\u5730\u5740<\/p>\n<p>\u56fd\u5185\u7f51\u7edc\u8bbf\u95ee\u6b27\u6d32\u670d\u52a1\u5668,\u8de8\u6d0b\u94fe\u8def\u957f,\u5ef6\u8fdf\u9ad8,\u5bbd\u5e26\u53d7\u9650,\u5bfc\u81f4\u4e0b\u8f7d\u8f6f\u4ef6\u5305\u65f6\u901f\u5ea6\u7ecf\u5e38\u53ea\u6709\u51e0\u5341KB\/s,\u751a\u81f3\u51fa\u73b0\u4e0b\u8f7d\u5931\u8d25\/\u6821\u9a8c\u9519\u8bef\u7b49\u95ee\u9898(\u603b\u4e4b\u5c31\u662f : \u7269\u7406\u8ddd\u79bb\u8fdc &#043; \u8de8\u56fd\u7f51\u7edc\u94fe\u8def\u9650\u5236)<\/p>\n<h3>\u600e\u4e48\u89e3\u51b3&#034;\u9ed8\u8ba4\u6e90&#034;\u4e0b\u8f7d\u6570\u636e\u6162\u7684\u95ee\u9898<\/h3>\n<p>\u56fd\u5185\u955c\u50cf\u6e90&#8212;&#8212;-\u7b80\u5355\u6765\u8bf4,\u5c31\u662f\u56fd\u5185\u7684\u516c\u53f8\/\u673a\u6784\u628aUbuntu\u5b98\u65b9\u670d\u52a1\u5668\u91cc\u7684\u6240\u6709\u8f6f\u4ef6\u5305,\u5b8c\u6574\u7684\u590d\u5236\u5230\u81ea\u5df1\u7684\u56fd\u5185\u670d\u52a1\u5668\u4e0a,\u5f62\u6210\u7684&#034;\u5b98\u65b9\u5185\u5bb9\u526f\u672c&#034;<\/p>\n<p>\u4e3a\u4ec0\u4e48\u56fd\u5185\u955c\u50cf\u6e90\u4e0b\u8f7d\u5feb&#xff1f;<br \/>\n\u8fd9\u4e2a\u53ef\u4ee5\u7528\u300c\u5feb\u9012\u9001\u8d27\u300d\u7684\u4f8b\u5b50\u7406\u89e3&#xff1a;<br \/>\n\u9ed8\u8ba4\u6b27\u6d32\u6e90&#xff1a;\u76f8\u5f53\u4e8e\u4f60\u5728\u56fd\u5185\u7f51\u8d2d&#xff0c;\u5546\u5bb6\u5374\u4ece\u6b27\u6d32\u4ed3\u5e93\u53d1\u8d27&#xff0c;\u5feb\u9012\u8981\u8de8\u8d8a\u5927\u6d0b&#xff0c;\u8def\u4e0a\u8981\u8d70\u51e0\u5929&#xff0c;\u901f\u5ea6\u5f88\u6162<br \/>\n\u56fd\u5185\u955c\u50cf\u6e90&#xff1a;\u76f8\u5f53\u4e8e\u5546\u5bb6\u5728\u56fd\u5185\u5efa\u4e86\u4e2a\u4ed3\u5e93&#xff0c;\u548c\u6b27\u6d32\u4ed3\u5e93\u91cc\u7684\u5546\u54c1\u4e00\u6a21\u4e00\u6837&#xff0c;\u4f60\u4e0b\u5355\u540e\u76f4\u63a5\u4ece\u56fd\u5185\u4ed3\u5e93\u53d1\u8d27&#xff0c;\u5f53\u5929\u5c31\u80fd\u5230&#xff0c;\u901f\u5ea6\u98de\u5feb<\/p>\n<p>\u56fd\u5185\u955c\u50cf\u6e90\u597d\u5904 :<\/p>\n<ul>\n<li>\u901f\u5ea6\u5feb&#8212;&#8212;&#8212;\u5728\u56fd\u5185\u955c\u50cf\u6e90\u4e0b\u8f7d\u8f6f\u4ef6\u5305\u4e0d\u9700\u8981\u8de8\u6d0b,\u56fd\u5185\u7f51\u7edc\u94fe\u8def\u77ed,\u5bbd\u5e26\u5145\u8db3,\u6240\u4ee5\u4e0b\u8f7d\u901f\u5ea6\u4ece[\u51e0\u5341KB\/s]\u76f4\u63a5\u8df3\u5230[\u51e0 MB\/s ~ \u51e0\u5341 MB\/s]<\/li>\n<li>\u5b8c\u5168\u514d\u8d39\u4e14\u5408\u6cd5&#8212;&#8212;&#8212;\u8fd9\u4e2a\u662f\u516c\u76ca\u670d\u52a1<\/li>\n<li>\u5185\u5bb9\u548c\u5b98\u65b9\u6e90\u5b8c\u5168\u4e00\u81f4&#8212;&#8212;&#8212;\u56fd\u5185\u955c\u50cf\u6e90\u4f1a\u5b9a\u671f\u548c\u5b98\u65b9Ubuntu\u670d\u52a1\u5668\u540c\u6b65,\u8f6f\u4ef6\u5305\u5b8c\u5168\u4e00\u81f4<\/li>\n<li>\u4e0d\u6539\u53d8\u4efb\u4f55\u547d\u4ee4\u7528\u6cd5&#8212;&#8212;&#8212;\u66f4\u6362\u955c\u50cf\u6e90\u4e4b\u540e,apt install\/update\u7b49\u547d\u4ee4\u7684\u7528\u6cd5\u5b8c\u5168\u4e0d\u53d8,\u53ea\u662f\u4e0b\u8f7d\u5730\u5740\u53d8\u4e86<\/li>\n<\/ul>\n<h3>\u600e\u4e48\u914d\u7f6e\u6e05\u534e\u5927\u5b66\u955c\u50cf\u6e90<\/h3>\n<p>\u914d\u7f6e\u6e05\u534e\u955c\u50cf\u6e90\u672c\u8d28\u5c31\u662f\u628a\/etc\/apt\/sources.list\u91cc\u7684\u4e0b\u8f7d\u5730\u5740,\u66ff\u6362\u4e3a\u6e05\u534e\u5927\u5b66\u7684\u56fd\u5185\u670d\u52a1\u5668\u5730\u5740<br \/>\n(\u914d\u7f6e\u5b8c\u6210\u4e4b\u540epat install\u7684\u4e0b\u8f7d\u901f\u5ea6\u76f4\u63a5\u62c9\u6ee1)<\/p>\n<ul>\n<li>1.\u67e5\u770bUbuntu\u7248\u672c\u4ee3\u53f7(\u786e\u8ba4\u7248\u672c\u4ee3\u53f7\u662f\u591a\u5c11)<\/li>\n<li>2.\u5907\u4efd\u539f\u6765\u7684\u9ed8\u8ba4\u6e90\u6587\u4ef6(\u4fdd\u547d\u7528\u7684)<\/li>\n<li>3.\u6253\u5f00\u6e90\u914d\u7f6e\u6587\u4ef6\u8fdb\u884c\u7f16\u8f91<\/li>\n<li>4.\u6e05\u7a7a\u6240\u6709\u5185\u5bb9&#043;\u7c98\u8d34\u6e05\u534e\u955c\u50cf\u6e90\u5730\u5740(\u4e0d\u540c\u7248\u672c\u4ee3\u53f7\u7684Ubuntu,\u7c98\u8d34\u7684\u5185\u5bb9\u4e0d\u4e00\u6837)<\/li>\n<li>5.\u4fdd\u5b58\u4e4b\u540e\u9000\u51fa\u7f16\u8f91\u5668<\/li>\n<li>6.\u5237\u65b0\u6e90\u7f13\u5b58(\u5982\u65b0\u914d\u7f6e\u751f\u6548,\u5982\u679c\u6ca1\u6709error\u5c31\u662f\u6210\u529f\u4e86)<\/li>\n<li>(\u8fd9\u4e2a\u4fee\u6539\u955c\u50cf\u6e90\u7684\u8fc7\u7a0b,\u548capt install\u547d\u4ee4\u6267\u884c\u8fc7\u7a0b\u6709\u5f02\u66f2\u540c\u5de5\u4e4b\u5999)<\/li>\n<\/ul>\n<h2>ip\u5730\u5740<\/h2>\n<p>ip(internet protocol address) : \u7f51\u7edc\u90e8\u5206 &#043; \u4e3b\u673a\u90e8\u5206<\/p>\n<h3>IP\u5730\u5740\u7684\u7ec4\u6210<\/h3>\n<p>\u7f51\u7edc\u90e8\u5206 : \u7528\u6765\u6807\u8bc6\u4e00\u4e2a\u7f51\u7edc,\u4ee3\u8868ip\u5730\u5740\u6240\u5c5e\u7f51\u7edc(\u5177\u4f53\u600e\u4e48\u6807\u8bc6\u4e00\u4e2a\u7f51\u7edc,\u540e\u9762\u518d\u8bf4)<\/p>\n<p>\u4e3b\u673a\u90e8\u5206 : \u7528\u6765\u53bb\u533a\u5206\u4e00\u4e2a\u7f51\u7edc\u4e2d\u7684\u4e0d\u540c\u4e3b\u673a,\u80fd\u552f\u4e00\u6807\u8bc6\u7f51\u6bb5\u4e0a\u7684\u67d0\u53f0\u8bbe\u5907<\/p>\n<p>\u5b50\u7f51\u63a9\u7801(\u7f51\u7edc\u63a9\u7801) : \u533a\u5206\u4e00\u4e2aip\u5730\u5740\u4e2d\u7684\u7f51\u7edc\u90e8\u5206\u548c\u4e3b\u673a\u90e8\u5206<\/p>\n<p>eg :<br \/>\nip : 192.168.1.1\/24<br \/>\n\u8fd9\u4e2a24\u4ee3\u886832\u4f4d\u4e2d\u670924\u4f4d\u662f1,\u56fa\u5b9a\u4f4f\u524d24\u4f4d\u662f\u7f51\u7edc\u4f4d \u540e\u9762\u7684\u8303\u56f4\u662f[0,255]<br \/>\n\u4e00\u5171256\u4e2a\u673a\u4f4d,\u51cf\u53bb\u7279\u6b8a\u7684\u4e24\u4e2a,\u8fd8\u6709254\u4e2a\u53ef\u7528\u7684\u673a\u4f4d<\/p>\n<p>\u5047\u8bbe\u7f51\u7edc\u4f4d\u4e3an\u4f4d,\u4e3b\u673a\u4f4d\u670932-n\u4f4d,\u8303\u56f4[0,2<sup>32-n<\/sup>-1] \u4e00\u51712<sup>32-n<\/sup>-2\u4e2a\u4e3b\u673a\u4f4d<\/p>\n<h3>IP\u5730\u5740\u7684\u5206\u7c7b<\/h3>\n<p>IP\u5730\u5740\u603b\u6570\u662f2<sup>32<\/sup>\u4e2a<\/p>\n<p>127.0.0.1\u662f\u6c38\u8fdc\u6307\u5411\u672c\u673a<\/p>\n<p>\u6309\u7167\u7b2c\u4e00\u4e2a\u5341\u8fdb\u5236\u6bb5[1,255]\u5206\u7c7b :<br \/>\nA\u7c7b      1~126 &#8212;&#8212;&#8211;\/8  \u9ed8\u8ba4\u5b50\u7f51\u63a9\u7801 : 255.0.0.0<br \/>\nB\u7c7b  128~191 &#8212;&#8212;&#8211;\/16  \u9ed8\u8ba4\u5b50\u7f51\u63a9\u7801 : 255.255.0.0<br \/>\nC\u7c7b  192~223 &#8212;&#8212;&#8211;\/24  \u9ed8\u8ba4\u5b50\u7f51\u63a9\u7801 : 255.255.255.0<br \/>\n\u2026<\/p>\n<p>\u8fd9\u6837\u5206\u7c7b\u53ef\u4ee5\u901a\u8fc7IP\u5730\u5740\u7684\u7b2c\u4e00\u4e2a\u5341\u8fdb\u5236\u6570,\u5feb\u901f\u77e5\u9053\u8fd9\u4e2aIP\u5c5e\u4e8e\u54ea\u79cd\u89c4\u6a21\u7684\u7f51\u7edc<\/p>\n<h2>\u7f51\u5361(network card)<\/h2>\n<p>\u7f51\u5361\u662f\u7535\u8111\/\u670d\u52a1\u5668\u4e0a\u9762\u7684\u4e00\u4e2a\u786c\u4ef6\u8bbe\u5907(\u73b0\u5f88\u591a\u90fd\u96c6\u6210\u5728\u4e3b\u677f\u4e0a),\u4e5f\u53ef\u4ee5\u662f\u865a\u62df\u7f51\u5361(WSL\u4e2d\u7684\u865a\u62df\u7f51\u5361)<\/p>\n<p>\u6838\u5fc3\u4f5c\u7528 :<\/p>\n<ul>\n<li>1.\u662f\u6570\u636e\u8fdb\u51fa\u7535\u8111\u7684\u552f\u4e00\u901a\u9053(\u7535\u8111\u8981\u4e0a\u7f51,\u8981\u548c\u5176\u4ed6\u7535\u8111\u51fa\u6570\u636e,\u6570\u636e\u5fc5\u987b\u901a\u8fc7\u7f51\u5361&#034;\u8fdb\u51fa&#034;)<\/li>\n<li>2.\u6bcf\u4e00\u5757\u7f51\u5361\u90fd\u6709\u4e00\u4e2a&#034;\u5168\u7403\u552f\u4e00\u7684\u7269\u7406\u5730\u5740MAC\u5730\u5740&#034;,\u76f8\u5f53\u4e8e\u5927\u95e8\u7684\u8eab\u4efd\u8bc1,\u5168\u7403\u552f\u4e00<\/li>\n<\/ul>\n<h2>\u5b50\u7f51\u63a9\u7801(\u7f51\u7edc\u63a9\u7801)<\/h2>\n<p>\u662f\u548cIP\u5730\u5740\u6210\u5bf9\u51fa\u73b0\u7684\u4e00\u7ec4\u6570\u636e(\u6bd4\u5982 : 255.255.255.0)<\/p>\n<p>\u6838\u5fc3\u4f5c\u7528 : \u628aIP\u5730\u5740\u548c\u5b50\u7f51\u63a9\u7801\u505a&#034;\u4e0e\u8fd0\u7b97&#034;,\u7ed3\u679c\u76f8\u540c\u5c31\u662f\u540c\u4e00\u4e2a\u5c40\u57df\u7f51<\/p>\n<h2>\u7f51\u5173(gateway)<\/h2>\n<p>\u662f\u4e00\u4e2a\u7f51\u7edc\u7684\u51fa\u53e3\u8bbe\u5907,\u901a\u5e38\u662f\u8def\u7531\u5668\u7684IP\u5730\u5740(\u5982 192.168.1.1)<\/p>\n<p>\u6838\u5fc3\u4f5c\u7528 :<\/p>\n<ul>\n<li>\u5982\u679c\u4e24\u53f0\u8bbe\u5907\u5728\u540c\u4e00\u4e2a\u5c40\u57df\u7f51,\u6570\u636e\u76f4\u63a5\u901a\u8fc7\u7f51\u5361\u4e92\u4f20,\u4e0d\u9700\u8981\u7f51\u5173<\/li>\n<li>\u5982\u679c\u4e24\u53f0\u8bbe\u5907\u4e0d\u5728\u540c\u4e00\u4e2a\u5c40\u57df\u7f51(\u6bd4\u5982 \u4f60\u8981\u8bbf\u95ee\u767e\u5ea6) : \u6570\u636e\u5fc5\u987b\u5148\u53d1\u7ed9\u7f51\u5173,\u518d\u6709\u7f51\u5173\u8f6c\u53d1\u5230\u76ee\u6807\u7f51\u7edc<\/li>\n<\/ul>\n<p>\u4ee5\u4f60\u7684\u7535\u8111\u8981\u8bbf\u95ee\u767e\u5ea6\u4e3a\u4f8b<\/p>\n<ul>\n<li>\u4f60\u7684\u7535\u8111\u7684IP\u5730\u5740(192.168.1.100)\u8981\u8bbf\u95ee\u767e\u5ea6\u670d\u52a1\u5668(\u516c\u7f51IP 180.101.50.188)<\/li>\n<li>\u5b50\u7f51\u63a9\u7801\u5224\u65ad : \u4f60\u7535\u8111IP\u548c\u767e\u5ea6IP\u4e0d\u5728\u540c\u4e00\u4e2a\u5c40\u57df\u7f51<\/li>\n<li>\u4f60\u7684\u7535\u8111\u5fc5\u987b\u9700\u8981\u7f51\u5173,\u5148\u628a\u6570\u636e\u5305\u53d1\u7ed9\u7f51\u5173(\u6bd4\u5982\u8def\u7531\u5668IP 192.168.1.1)<\/li>\n<li>\u7f51\u5173\u628a\u6570\u636e\u53d1\u9001\u7ed9\u4e92\u8054\u7f51,\u6700\u7ec8\u9001\u5230\u767e\u5ea6\u7684\u670d\u52a1\u5668<\/li>\n<li>\u767e\u5ea6\u670d\u52a1\u5668\u8fd4\u56de\u6570\u636e,\u518d\u901a\u8fc7\u7f51\u5173\u4f20\u56de\u4f60\u7684\u7535\u8111<\/li>\n<\/ul>\n<h3>&#034;\u5728\u540c\u4e00\u4e2a\u7f51\u6bb5&#034;\u548c&#034;\u5728\u540c\u4e00\u4e2a\u5c40\u57df\u7f51&#034;\u4e00\u6837\u5417?<\/h3>\n<p>\u7b54\u6848 : \u4e0d\u4e00\u6837<\/p>\n<p>\u4e00\u4e2a\u5c40\u57df\u7f51\u53ef\u4ee5\u5305\u542b\u591a\u4e2a\u7f51\u6bb5<br \/>\n\u4e00\u4e2a\u8def\u7531\u5668\u53ef\u4ee5\u6709\u591a\u4e2a\u7f51\u6bb5<br \/>\n\u4e0b\u9762\u8be6\u7ec6\u8bb2\u8bb2 :<br \/>\n\u8def\u7531\u5668\u7684\u6838\u5fc3\u529f\u80fd\u4e4b\u4e00 : \u5212\u5206\u7f51\u6bb5&#043;\u8f6c\u53d1\u4e0d\u540c\u7f51\u6bb5\u7684\u6570\u636e<\/p>\n<p>\u4e3e\u4e2a\u5177\u4f53\u7684\u6280\u672f\u4f8b\u5b50&#xff1a;<br \/>\n\u5b50\u7f51\u63a9\u7801\u89c4\u5219&#xff1a;255.255.255.0&#xff08;\u610f\u601d\u662f IP \u5730\u5740\u524d 3 \u6bb5\u76f8\u540c&#xff0c;\u5c31\u662f\u540c\u4e00\u4e2a\u7f51\u6bb5&#xff09;<br \/>\n\u8bbe\u5907 A IP&#xff1a;192.168.1.100<br \/>\n\u8bbe\u5907 B IP&#xff1a;192.168.1.200<br \/>\n\u8bbe\u5907 C IP&#xff1a;192.168.2.50<br \/>\n\u6309\u7167\u89c4\u5219 :<br \/>\nA\u548cB\u5c5e\u4e8e\u540c\u4e00\u4e2a\u7f51\u6bb5,\u53ef\u4ee5\u76f4\u63a5\u901a\u4fe1,\u4e0d\u9700\u8981\u7f51\u5173<br \/>\nC\u548cA\u4e0d\u5728\u540c\u4e00\u4e2a\u7f51\u6bb5,\u901a\u4fe1\u9700\u8981\u7ecf\u8fc7\u7f51\u5173\u8f6c\u53d1<\/p>\n<h2>DNS(Domain Name System)\u57df\u540d\u89e3\u6790\u7cfb\u7edf<\/h2>\n<p>DNS\u662f\u4e92\u8054\u7f51\u7684\u4e00\u9879\u670d\u52a1,\u662f\u5c06\u57df\u540d\u548cIP\u5730\u5740\u76f8\u4e92\u6620\u5c04\u7684\u4e00\u5171\u5206\u5e03\u5f0f\u6570\u636e\u5e93<br \/>\nwww.baidu.com&#8212;&#8212;&#8212;-DNS&#8212;&#8212;&gt;IP\u5730\u5740<\/p>\n<h4>\u5230\u5e95\u662f\u600e\u4e48\u4ecewww.baidu.com&#8212;&#8212;&gt;\u767e\u5ea6IP\u5730\u5740<\/h4>\n<p>\u5728\u6d4f\u89c8\u5668\u8bbf\u95eewww.baidu.com \u7cfb\u7edf\u4f1a\u5728Linux\u7cfb\u7edf\u4e2d\u68c0\u67e5\/etc\/hosts<br \/>\n\u6587\u4ef6\u4e2d\u6709\u6ca1\u6709\u5bf9\u5e94\u5173\u7cfb\u7684\u8bb0\u5f55,\u6709\u76f4\u63a5\u6253\u5f00\u5bf9\u5e94IP\u5730\u5740\u7684\u7f51\u7ad9,\u6ca1\u6709\u5c31\u6765\u8054\u7f51\u53bbDNS\u670d\u52a1\u5668\u8be2\u95ee\u662f\u5426\u6709\u8bb0\u5f55,\u627e\u5230\u767e\u5ea6\u670d\u52a1\u5668\u7684IP\u5730\u5740<\/p>\n<h2>hostname\u4e3b\u673a\u540d<\/h2>\n<p><span class=\"token function\">hostname<\/span> <span class=\"token comment\"># \u663e\u793a\u4e3b\u673a\u540d<\/span><br \/>\nhostnamectl set-hostname lixiangCP <span class=\"token comment\"># \u628a\u4e3b\u673a\u540d\u8bbe\u7f6e\u4e3alixinagCP <\/span><\/p>\n<h2>\u56fa\u5b9aIP<\/h2>\n<p>\u5f53\u524d\u6211\u4eec\u865a\u62df\u673a\u7684Linux\u7cfb\u7edf,\u5176IP\u5730\u5740\u662f\u901a\u8fc7DHCP\u670d\u52a1\u83b7\u5f97<br \/>\nDHCP : \u52a8\u6001\u83b7\u5f97IP\u5730\u5740,\u5373\u6bcf\u4e00\u6b21\u91cd\u542f\u4e00\u6b21\u8bbe\u5907\u540e\u90fd\u4f1a\u83b7\u53d6\u4e00\u6b21,\u5bfc\u81f4IP\u5730\u5740\u9891\u7e41\u66f4\u6362<\/p>\n<h2>ping\u547d\u4ee4<\/h2>\n<p>ping\u547d\u4ee4,\u68c0\u67e5\u6307\u5b9a\u7684\u7f51\u7edc\u670d\u52a1\u5668\u662f\u5426\u662f\u53ef\u8fde\u901a\u72b6\u6001<\/p>\n<p><span class=\"token function\">ping<\/span>  -c num ip\/\u4e3b\u673a\u540d<br \/>\n<span class=\"token comment\"># \u68c0\u67e5\u670d\u52a1\u5668\u7684IP\u5730\u5740\/\u4e3b\u673a\u540d\u7684IP\u5730\u5740\u662f\u5426\u662f\u8054\u901a\u7684<\/span><\/p>\n<h2>wget(web get)\u547d\u4ee4<\/h2>\n<p>wget(\u4ece\u7f51\u7edc\u4e0a\u83b7\u53d6\u6587\u4ef6),\u662f\u975e\u4ea4\u4e92\u5f0f\u7684\u6587\u4ef6\u4e0b\u8f7d\u5668,\u53ef\u4ee5\u5728\u547d\u4ee4\u884c\u5185\u4e0b\u8f7d\u7f51\u7edc\u6587\u4ef6<\/p>\n<h3>\u5b89\u88c5wget<\/h3>\n<p><span class=\"token function\">apt<\/span> update <span class=\"token operator\">&amp;&amp;<\/span> <span class=\"token function\">apt<\/span> <span class=\"token function\">install<\/span> <span class=\"token function\">wget<\/span> -y<br \/>\n<span class=\"token comment\"># \u5237\u65b0\u8f6f\u4ef6\u5546\u5e97 &amp;&amp; \u5b89\u88c5wget<\/span><\/p>\n<h3>\u4f7f\u7528wget\u547d\u4ee4<\/h3>\n<p><span class=\"token function\">wget<\/span> https:\/\/ww.exapmle.com\/test\/txt<br \/>\n<span class=\"token comment\"># \u4e0b\u8f7d\u7684\u6587\u4ef6\u4f1a\u4fdd\u5b58\u5728\u5f53\u524d\u7ec8\u7aef\u6240\u5728\u7684\u76ee\u5f55\u4e0b<\/span><br \/>\n<span class=\"token comment\"># \u4e0b\u8f7d\u8fc7\u7a0b\u4f1a\u663e\u793a\u8fdb\u5ea6\u6761,\u6587\u4ef6\u5927\u5c0f,\u4e0b\u8f7d\u901f\u5ea6,\u5269\u4f59\u65f6\u95f4<\/span><br \/>\n<span class=\"token comment\"># -b(background) \u662f\u540e\u53f0\u4e0b\u8f7d,\u7ec8\u7aef\u53ef\u4ee5\u7ee7\u7eed\u505a\u5176\u4ed6\u4e8b,\u4f1a\u5c06\u65e5\u5fd7\u5199\u5165\u5230\u5f53\u524d\u5de5\u4f5c\u76ee\u5f55\u7684wget-log\u6587\u4ef6,\u60f3\u770b\u8fdb\u5ea6\u53ef\u4ee5\u7528tail -f wget-log\u67e5\u770b<\/span><br \/>\n<span class=\"token comment\"># -c(continue) \u5982\u679c\u6587\u4ef6\u5f88\u5927,\u7528-c\u53c2\u6570\u7eed\u4f20(\u4e2d\u65ad\u540e\u91cd\u65b0\u6267\u884c,\u4ece\u65ad\u7535\u7ee7\u7eed\u4e0b\u8f7d)<\/span><\/p>\n<p>\u5982\u679c\u6b63\u5728\u4e0b\u8f7d,\u60f3\u7ec8\u6b62,\u5c31Ctrl &#043; c,\u4e0b\u8f7d\u5c31\u7ec8\u6b62\u4e86<\/p>\n<p><span class=\"token function\">wget<\/span> -O <span class=\"token punctuation\">[<\/span>\u65b0\u6587\u4ef6\u540d<span class=\"token punctuation\">]<\/span> <span class=\"token punctuation\">[<\/span>\u6587\u4ef6URL<span class=\"token punctuation\">]<\/span><br \/>\n<span class=\"token comment\"># \u4e0d\u52a0-O,\u4e0b\u8f7d\u7684\u6587\u4ef6\u540d\u4e8e\u670d\u52a1\u5668\u4e0a\u9762\u4e00\u6837<\/span><br \/>\n<span class=\"token comment\"># \u52a0-O,\u4e0b\u8f7d\u7684\u6587\u4ef6\u540d\u547d\u540d\u4f4d[\u65b0\u6587\u4ef6\u540d]<\/span><\/p>\n<h2>URL(uniform resource locater \u7edf\u4e00\u8d44\u6e90\u5b9a\u4f4d\u7b26)&#061;\u7f51\u5740<\/h2>\n<h2>curl\u547d\u4ee4<\/h2>\n<p>curl(client url) : \u5ba2\u6237\u7aefURL\u5de5\u5177<br \/>\n\u6838\u5fc3 : \u5411\u6307\u5b9a\u7684URL\u5730\u5740\u53d1\u9001\u7f51\u7edc\u8bf7\u6c42,\u5e76\u83b7\u53d6\u670d\u52a1\u5668 \u8fd4\u56de\u7684\u5185\u5bb9<br \/>\n(\u65e2\u53ef\u4ee5\u4e0b\u8f7d\u6587\u4ef6,\u4e5f\u53ef\u4ee5\u4e0a\u4f20\u6587\u4ef6,\u53d1\u9001\u8bf7\u6c42,\u6d4b\u8bd5\u7f51\u7ad9\u8fde\u901a\u6027,\u9a8c\u8bc1\u670d\u52a1\u5668\u72b6\u6001)<\/p>\n<h3>curl\u7684\u5b89\u88c5<\/h3>\n<p><span class=\"token comment\"># \u5237\u65b0\u5e76\u5b89\u88c5curl<\/span><br \/>\n<span class=\"token function\">apt<\/span> update <span class=\"token operator\">&amp;&amp;<\/span> <span class=\"token function\">apt<\/span> <span class=\"token function\">install<\/span> <span class=\"token function\">curl<\/span> -y<\/p>\n<h3>\u4f7f\u7528curl\u547d\u4ee4<\/h3>\n<p>client uniform resource locator \u5ba2\u6237\u7aef\u7f51\u5740\/\u5ba2\u6237\u7aef\u7edf\u4e00\u8d44\u6e90\u5b9a\u4f4d\u7b26<\/p>\n<p><span class=\"token function\">curl<\/span> www.baidu.com<br \/>\n<span class=\"token comment\"># \u7ec8\u7aef\u76f4\u63a5\u8f93\u51fawww.baidu.com\u7684\u5168\u90e8HTL\u7f51\u9875\u6e90\u4ee3\u7801<\/span><\/p>\n<p><span class=\"token comment\"># \u4f5c\u7528 : \u5feb\u901f\u9a8c\u8bc1\u7f51\u7ad9\u662f\u5426\u53ef\u4ee5\u6b63\u5e38\u8bbf\u95ee&#043;\u670d\u52a1\u5668\u662f\u5426\u8fd4\u56de\u5185\u5bb9,\u6bd4ping\u66f4\u7cbe\u51c6<\/span><\/p>\n<p><span class=\"token comment\"># \u5bf9\u6bd4ping : ping\u53ea\u662f\u6d4b\u8bd5\u8fde\u901a\u6027,\u4e0d\u5173\u5fc3\u670d\u52a1\u5668\u8fd4\u56de\u4ec0\u4e48,curl\u662f\u6d4b\u8bd5\u8fde\u901a\u6027&#043;\u62ff\u5230\u670d\u52a1\u5668\u8fd4\u56de\u7684\u5b9e\u9645\u5185\u5bb9,\u5224\u65ad\u7f51\u9875\u662f\u5426\u4e89\u593a\u80fd\u591f\u6253\u5f00<\/span><\/p>\n<p><span class=\"token function\">curl<\/span> -O url <span class=\"token comment\"># \u7528\u4e8e\u4e0b\u8f7d url\u662f\u7f51\u5740<\/span><\/p>\n<h2>\u7aef\u53e3<\/h2>\n<p>\u8ba1\u7b97\u673a\u4e4b\u95f4\u7684\u901a\u8baf,IP\u5730\u5740\u53ea\u80fd\u9501\u5b9a\u8ba1\u7b97\u673a,\u65e0\u6cd5\u9501\u5b9a\u4e00\u4e2a\u5177\u4f53\u7684\u7a0b\u5e8f<br \/>\n\u901a\u8fc7\u7aef\u53e3\u53ef\u4ee5\u9501\u5b9a\u8ba1\u7b97\u673a\u4e0a\u7684\u5177\u4f53\u7a0b\u5e8f<\/p>\n<p>Linux\u7cfb\u7edf\u6709\u516d\u4e07\u591a\u4e2a\u7aef\u53e3<br \/>\n\u5206\u4e3a\u516c\u8ba4\u7aef\u53e3,\u6ce8\u518c\u7aef\u53e3,\u52a8\u6001\u7aef\u53e3<\/p>\n<h2>nmap(network mapper\u7f51\u7edc\u6620\u5c04\u5668)<\/h2>\n<p>\u7528\u9014 :<\/p>\n<ul>\n<li>\u626b\u63cf\u5c40\u57df\u7f51\u8bbe\u5907<\/li>\n<li>\u68c0\u67e5\u7aef\u53e3\u5f00\u653e\/\u5173\u95ed<\/li>\n<li>\u5224\u65ad\u4e3b\u673a\u662f\u5426\u5728\u7ebf<\/li>\n<li>\u67e5\u770b\u670d\u52a1\u5668\u670d\u52a1\u7248\u672c<\/li>\n<\/ul>\n<h3>\u5b89\u88c5nmap<\/h3>\n<p><span class=\"token comment\"># \u5237\u65b0\u8f6f\u4ef6\u5546\u5e97 &amp;&amp; \u5b89\u88c5namp<\/span><br \/>\n<span class=\"token function\">apt<\/span> update <span class=\"token operator\">&amp;&amp;<\/span><span class=\"token operator\">&amp;<\/span> <span class=\"token function\">apt<\/span> <span class=\"token function\">install<\/span> namp -y<\/p>\n<h3>nmap 127.0.0.1<\/h3>\n<p>127.0.0.1\u6c38\u8fdc\u4ee3\u8868\u672c\u673a,\u7b49\u4ef7\u4e8elocalhost<\/p>\n<p><span class=\"token comment\"># \u7528nmap\u626b\u63cf\u672c\u673a\u56de\u73af\u5730\u5740127.0.0.1<\/span><br \/>\nnmap <span class=\"token number\">127.0<\/span>.0.1<br \/>\n<span class=\"token comment\"># \u8f93\u51fa :<\/span><br \/>\nStarting Nmap <span class=\"token number\">7.80<\/span> <span class=\"token punctuation\">(<\/span> https:\/\/nmap.org <span class=\"token punctuation\">)<\/span> at <span class=\"token number\">2026<\/span>-01-16 <span class=\"token number\">19<\/span>:33 CST <span class=\"token comment\"># \u5f00\u59cbnmap7,80\u57282026-01-16 19:33 CST<\/span><br \/>\nNmap scan report <span class=\"token keyword\">for<\/span> localhost <span class=\"token punctuation\">(<\/span><span class=\"token number\">127.0<\/span>.0.1<span class=\"token punctuation\">)<\/span> <span class=\"token comment\"># nmap\u626b\u63cf\u62a5\u544a\u5bf9\u4e8elocalhost(127.0.0.1)<\/span><br \/>\nHost is up <span class=\"token punctuation\">(<\/span><span class=\"token number\">0<\/span>.0000020s latency<span class=\"token punctuation\">)<\/span>. <span class=\"token comment\"># \u4e3b\u673a\u6b63\u5e38\u5f00\u673a(\u5ef6\u8fdf\u65f6\u95f4)<\/span><br \/>\nAll <span class=\"token number\">1000<\/span> scanned ports on localhost <span class=\"token punctuation\">(<\/span><span class=\"token number\">127.0<\/span>.0.1<span class=\"token punctuation\">)<\/span> are closed <span class=\"token comment\"># \u6240\u67091000\u4e2a\u88ab\u626b\u63cf\u7684\u7aef\u53e3\u5728\u672c\u673a\u4e0a\u662f\u5173\u95ed\u7684<\/span><br \/>\nNmap done: <span class=\"token number\">1<\/span> IP address <span class=\"token punctuation\">(<\/span><span class=\"token number\">1<\/span> <span class=\"token function\">host<\/span> up<span class=\"token punctuation\">)<\/span> scanned <span class=\"token keyword\">in<\/span> <span class=\"token number\">0.08<\/span> seconds <span class=\"token comment\"># nmap\u7ed3\u675f: 1\u4e2aIP\u5730\u5740\u88ab\u626b\u63cf\u57280.008\u79d2\u5185<\/span><\/p>\n<h2>netstat(network statistics\u7f51\u7edc\u72b6\u6001)<\/h2>\n<p>\u6838\u5fc3\u4f5c\u7528 : \u67e5\u770b\u672c\u673a(\u53ea\u770b\u672c\u673a)\u6240\u6709\u7f51\u7edc\u63a5\u53e3,\u7aef\u53e3\u76d1\u542c,\u7f51\u5361\u4fe1\u606f,\u8def\u7531\u8868(\u4e0d\u626b\u63cf\u5916\u90e8\u8bbe\u5907,\u8fd9\u662f\u548cnmap\u6700\u6838\u5fc3\u533a\u522b)<br \/>\n\u5df2\u7ecf\u6709\u4e86ss\u547d\u4ee4,\u66f4\u52a0\u5f3a\u5927,\u6240\u4ee5\u76f4\u63a5\u5b66\u4e60ss\u547d\u4ee4<\/p>\n<h2>ss(socket statistics \u5957\u63a5\u5b57\u7edf\u8ba1\u5de5\u5177)\u547d\u4ee4<\/h2>\n<p>\u6838\u5fc3\u529f\u80fd : Linux\u7cfb\u7edf\u539f\u751f\u7684\u7f51\u7edc\u72b6\u6001\u67e5\u8be2\u5de5\u5177,\u76f4\u63a5\u8bfb\u53d6\u5185\u6838\u7f51\u7edc\u6570\u636e<\/p>\n<table>\n<tr>\u53c2\u6570\u4e2d\u6587\u4f5c\u7528\u7b97\u6cd5\u5de5\u7a0b\u5e08\u4f7f\u7528\u573a\u666f<\/tr>\n<tbody>\n<tr>\n<td>-t(TCP)<\/td>\n<td>\u53ea\u663e\u793a TCP \u534f\u8bae\u7684\u5957\u63a5\u5b57 \/ \u8fde\u63a5\u4fe1\u606f<\/td>\n<td>99% \u7684\u670d\u52a1&#xff08;SSH\u3001Jupyter\u3001TensorBoard&#xff09;\u90fd\u7528 TCP \u534f\u8bae&#xff0c;\u5fc5\u52a0\u6b64\u53c2\u6570<\/td>\n<\/tr>\n<tr>\n<td>-l(Listening)<\/td>\n<td>\u53ea\u663e\u793a \u5904\u4e8e\u76d1\u542c\u72b6\u6001\u7684\u7aef\u53e3<\/td>\n<td>\u68c0\u67e5\u670d\u52a1\u662f\u5426\u6b63\u5e38\u542f\u52a8&#xff08;\u6bd4\u5982 Jupyter \u7684 8888 \u7aef\u53e3\u662f\u5426\u5728\u76d1\u542c&#xff09;<\/td>\n<\/tr>\n<tr>\n<td>-n(Numeric)<\/td>\n<td>\u4ee5\u7eaf\u6570\u5b57\u5f62\u5f0f\u663e\u793a IP \u5730\u5740\u548c\u7aef\u53e3\u53f7&#xff0c;\u4e0d\u89e3\u6790\u57df\u540d \/ \u670d\u52a1\u540d<\/td>\n<td>\u907f\u514d DNS \u89e3\u6790\u5361\u987f&#xff0c;\u7ed3\u679c\u66f4\u7b80\u6d01&#xff08;\u6bd4\u5982\u76f4\u63a5\u663e\u793a 8888 \u800c\u4e0d\u662f jupyter&#xff09;<\/td>\n<\/tr>\n<tr>\n<td>-u(UDP)<\/td>\n<td>\u663e\u793aUDP\u534f\u8bae\u7684\u6240\u6709\u8fde\u63a5\/\u7aef\u53e3<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>-4(IPv4)<\/td>\n<td>\u53ea\u663e\u793aIPv4\u534f\u8bae\u7684\u7f51\u7edc\u4fe1\u606f<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>-6(IPv6)<\/td>\n<td>\u53ea\u663e\u793aIPv6\u534f\u8bae\u7684\u7f51\u7edc\u4fe1\u606f<\/td>\n<td><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>-tln \u53ea\u663e\u793a\u672c\u673a\u4e0a\u6240\u6709\u5904\u4e8e\u76d1\u542c\u72b6\u6001\u7684TCP\u7aef\u53e3,\u4e14\u4ee5\u7eaf\u6570\u5b57\u5f62\u5f0f\u8f93\u51fa<\/p>\n<h2>\u8fdb\u7a0b<\/h2>\n<h3>ps(process)\u547d\u4ee4<\/h3>\n<p><span class=\"token function\">ps<\/span> -e -f <span class=\"token comment\"># \u67e5\u770b\u8fdb\u7a0b\u4fe1\u606f <\/span><br \/>\n<span class=\"token comment\"># -e\u67e5\u770b\u6240\u6709<\/span><br \/>\n<span class=\"token comment\"># -f\u683c\u5f0f\u5316\u663e\u793a<\/span><\/p>\n<p><span class=\"token comment\"># \u8f93\u51fa :<\/span><br \/>\n<span class=\"token environment constant\">UID<\/span>          PID    <span class=\"token environment constant\">PPID<\/span>  C STIME TTY          TIME CMD<br \/>\nroot         <span class=\"token number\">996<\/span>     <span class=\"token number\">975<\/span>  <span class=\"token number\">0<\/span> <span class=\"token number\">18<\/span>:48 pts\/0    00:00:00 <span class=\"token function\">su<\/span><br \/>\nroot        <span class=\"token number\">1007<\/span>     <span class=\"token number\">996<\/span>  <span class=\"token number\">0<\/span> <span class=\"token number\">18<\/span>:48 pts\/0    00:00:00 <span class=\"token function\">bash<\/span><br \/>\nroot        <span class=\"token number\">2402<\/span>    <span class=\"token number\">1007<\/span>  <span class=\"token number\">0<\/span> <span class=\"token number\">20<\/span>:34 pts\/0    00:00:00 <span class=\"token function\">ps<\/span> -f<br \/>\n<span class=\"token comment\"># \u7528\u6237ID \u8fdb\u7a0bID \u7236\u8fdb\u7a0b(\u542f\u52a8\u6b64\u8fdb\u7a0b\u7684\u5176\u4ed6\u8fdb\u7a0b)ID \u6b64\u8fdb\u7a0b\u7684CPU\u5360\u7528\u7387 starttime\u8fdb\u7a0b\u542f\u52a8\u65f6\u95f4 \u542f\u52a8\u6b64\u8fdb\u7a0b\u7684\u7ec8\u7aef\u4fe1\u53f7 \u542f\u52a8\u547d\u4ee4<\/span><\/p>\n<h3>kill\u547d\u4ee4<\/h3>\n<p><span class=\"token function\">kill<\/span> -9 \u8fdb\u7a0bID<br \/>\n<span class=\"token comment\"># -9 \u8868\u793a\u5f3a\u5236\u5173\u95ed<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u96f6<br \/>\n\u66f4\u65b0\u4e2d<br \/>\n\u5148\u770b\u76ee\u5f55<br \/>\n\u6211\u5728Linux\u5b66\u4e60\u8fc7\u7a0b\u4e2d\u9047\u5230\u7684\u95ee\u9898<br \/>\nLinux\u91cc\\&#8221;\u4e0b\u8f7d\u547d\u4ee4\\&#8221;\u548c\\&#8221;\u4e0b\u8f7d\u8f6f\u4ef6\u5305\\&#8221;\u6709\u533a\u522b\u5417<br \/>\n\u672c\u8d28\u4e0a\\&#8221;\u4e0b\u8f7d\u547d\u4ee4\\&#8221;\u548c\\&#8221;\u4e0b\u8f7d\u8f6f\u4ef6\u5305\\&#8221;\u90fd\u662f\u4e00\u4e2a\u4e1c\u897f,\u6ca1\u6709\u533a\u522b<br \/>\napt install python3\u8fd9\u4e2a\u547d\u4ee4,\u672c\u8d28\u4e0a\u5c31\u662f :<br \/>\n\u4f60\u7684\u7535\u8111\u5411\\&#8221;Linux\u5b98\u65b9\u8f6f\u4ef6\u670d\u52a1\u5668(Linux\u5b98\u65b9\u4ed3\u5e93,\u5b98\u65b9\u670d\u52a1\u7684\u8fdc\u7a0b\u8f6f\u4ef6\u670d\u52a1\u5668)\\&#8221;\u53d1\u9001\u4e0b\u8f7d\u8bf7\u6c42\u2014&gt;\u4e0b\u8f7dPython3\u7684\u8f6f\u4ef6\u5305\u2014&gt;\u81ea\u52a8\u5b89\u88c5\u5230\u4f60\u7684\u7cfb\u7edf\u2014&gt;\u5b89\u88c5\u5b8c\u6210\u540e,\u4f60\u5c31\u53ef\u4ee5\u4f7f\u7528python3\u8fd9\u4e2a\u547d\u4ee4\u4e86<br \/>\n\u4e3a\u4ec0\u4e48\\&#8221;\u4e0b\u8f7d\u8f6f\u4ef6\u5305\\&#8221;\u4e0e\\&#8221;\u4e0b\u8f7d\u547d\u4ee4\\&#8221;\u6ca1\u6709\u533a\u522b<br \/>\n\u5148<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[58,205,78],"topic":[],"class_list":["post-62647","post","type-post","status-publish","format-standard","hentry","category-server","tag-linux","tag-tcp-ip","tag-78"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\uff1cLinux\u57fa\u7840\u7b2c3\u96c6\uff1e\u6e05\u534e\u955c\u50cf\u6e90\u914d\u7f6e+\u7f51\u7edc\u57fa\u7840\u6982\u5ff5\u7406\u89e3(IP\u5730\u5740+\u7f51\u5361+\u7f51\u5173+\u5b50\u7f51\u63a9\u7801+DNS...) - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/62647.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\uff1cLinux\u57fa\u7840\u7b2c3\u96c6\uff1e\u6e05\u534e\u955c\u50cf\u6e90\u914d\u7f6e+\u7f51\u7edc\u57fa\u7840\u6982\u5ff5\u7406\u89e3(IP\u5730\u5740+\u7f51\u5361+\u7f51\u5173+\u5b50\u7f51\u63a9\u7801+DNS...) - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u96f6 \u66f4\u65b0\u4e2d \u5148\u770b\u76ee\u5f55 \u6211\u5728Linux\u5b66\u4e60\u8fc7\u7a0b\u4e2d\u9047\u5230\u7684\u95ee\u9898 Linux\u91cc&quot;\u4e0b\u8f7d\u547d\u4ee4&quot;\u548c&quot;\u4e0b\u8f7d\u8f6f\u4ef6\u5305&quot;\u6709\u533a\u522b\u5417 \u672c\u8d28\u4e0a&quot;\u4e0b\u8f7d\u547d\u4ee4&quot;\u548c&quot;\u4e0b\u8f7d\u8f6f\u4ef6\u5305&quot;\u90fd\u662f\u4e00\u4e2a\u4e1c\u897f,\u6ca1\u6709\u533a\u522b apt install python3\u8fd9\u4e2a\u547d\u4ee4,\u672c\u8d28\u4e0a\u5c31\u662f : \u4f60\u7684\u7535\u8111\u5411&quot;Linux\u5b98\u65b9\u8f6f\u4ef6\u670d\u52a1\u5668(Linux\u5b98\u65b9\u4ed3\u5e93,\u5b98\u65b9\u670d\u52a1\u7684\u8fdc\u7a0b\u8f6f\u4ef6\u670d\u52a1\u5668)&quot;\u53d1\u9001\u4e0b\u8f7d\u8bf7\u6c42\u2014&gt;\u4e0b\u8f7dPython3\u7684\u8f6f\u4ef6\u5305\u2014&gt;\u81ea\u52a8\u5b89\u88c5\u5230\u4f60\u7684\u7cfb\u7edf\u2014&gt;\u5b89\u88c5\u5b8c\u6210\u540e,\u4f60\u5c31\u53ef\u4ee5\u4f7f\u7528python3\u8fd9\u4e2a\u547d\u4ee4\u4e86 \u4e3a\u4ec0\u4e48&quot;\u4e0b\u8f7d\u8f6f\u4ef6\u5305&quot;\u4e0e&quot;\u4e0b\u8f7d\u547d\u4ee4&quot;\u6ca1\u6709\u533a\u522b \u5148\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/62647.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-01-20T05:42:11+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/62647.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/62647.html\",\"name\":\"\uff1cLinux\u57fa\u7840\u7b2c3\u96c6\uff1e\u6e05\u534e\u955c\u50cf\u6e90\u914d\u7f6e+\u7f51\u7edc\u57fa\u7840\u6982\u5ff5\u7406\u89e3(IP\u5730\u5740+\u7f51\u5361+\u7f51\u5173+\u5b50\u7f51\u63a9\u7801+DNS...) - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-01-20T05:42:11+00:00\",\"dateModified\":\"2026-01-20T05:42:11+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/62647.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/62647.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/62647.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\uff1cLinux\u57fa\u7840\u7b2c3\u96c6\uff1e\u6e05\u534e\u955c\u50cf\u6e90\u914d\u7f6e+\u7f51\u7edc\u57fa\u7840\u6982\u5ff5\u7406\u89e3(IP\u5730\u5740+\u7f51\u5361+\u7f51\u5173+\u5b50\u7f51\u63a9\u7801+DNS...)\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\uff1cLinux\u57fa\u7840\u7b2c3\u96c6\uff1e\u6e05\u534e\u955c\u50cf\u6e90\u914d\u7f6e+\u7f51\u7edc\u57fa\u7840\u6982\u5ff5\u7406\u89e3(IP\u5730\u5740+\u7f51\u5361+\u7f51\u5173+\u5b50\u7f51\u63a9\u7801+DNS...) - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/62647.html","og_locale":"zh_CN","og_type":"article","og_title":"\uff1cLinux\u57fa\u7840\u7b2c3\u96c6\uff1e\u6e05\u534e\u955c\u50cf\u6e90\u914d\u7f6e+\u7f51\u7edc\u57fa\u7840\u6982\u5ff5\u7406\u89e3(IP\u5730\u5740+\u7f51\u5361+\u7f51\u5173+\u5b50\u7f51\u63a9\u7801+DNS...) - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u96f6 \u66f4\u65b0\u4e2d \u5148\u770b\u76ee\u5f55 \u6211\u5728Linux\u5b66\u4e60\u8fc7\u7a0b\u4e2d\u9047\u5230\u7684\u95ee\u9898 Linux\u91cc\"\u4e0b\u8f7d\u547d\u4ee4\"\u548c\"\u4e0b\u8f7d\u8f6f\u4ef6\u5305\"\u6709\u533a\u522b\u5417 \u672c\u8d28\u4e0a\"\u4e0b\u8f7d\u547d\u4ee4\"\u548c\"\u4e0b\u8f7d\u8f6f\u4ef6\u5305\"\u90fd\u662f\u4e00\u4e2a\u4e1c\u897f,\u6ca1\u6709\u533a\u522b apt install python3\u8fd9\u4e2a\u547d\u4ee4,\u672c\u8d28\u4e0a\u5c31\u662f : \u4f60\u7684\u7535\u8111\u5411\"Linux\u5b98\u65b9\u8f6f\u4ef6\u670d\u52a1\u5668(Linux\u5b98\u65b9\u4ed3\u5e93,\u5b98\u65b9\u670d\u52a1\u7684\u8fdc\u7a0b\u8f6f\u4ef6\u670d\u52a1\u5668)\"\u53d1\u9001\u4e0b\u8f7d\u8bf7\u6c42\u2014&gt;\u4e0b\u8f7dPython3\u7684\u8f6f\u4ef6\u5305\u2014&gt;\u81ea\u52a8\u5b89\u88c5\u5230\u4f60\u7684\u7cfb\u7edf\u2014&gt;\u5b89\u88c5\u5b8c\u6210\u540e,\u4f60\u5c31\u53ef\u4ee5\u4f7f\u7528python3\u8fd9\u4e2a\u547d\u4ee4\u4e86 \u4e3a\u4ec0\u4e48\"\u4e0b\u8f7d\u8f6f\u4ef6\u5305\"\u4e0e\"\u4e0b\u8f7d\u547d\u4ee4\"\u6ca1\u6709\u533a\u522b \u5148","og_url":"https:\/\/www.wsisp.com\/helps\/62647.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-01-20T05:42:11+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/62647.html","url":"https:\/\/www.wsisp.com\/helps\/62647.html","name":"\uff1cLinux\u57fa\u7840\u7b2c3\u96c6\uff1e\u6e05\u534e\u955c\u50cf\u6e90\u914d\u7f6e+\u7f51\u7edc\u57fa\u7840\u6982\u5ff5\u7406\u89e3(IP\u5730\u5740+\u7f51\u5361+\u7f51\u5173+\u5b50\u7f51\u63a9\u7801+DNS...) - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-01-20T05:42:11+00:00","dateModified":"2026-01-20T05:42:11+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/62647.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/62647.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/62647.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\uff1cLinux\u57fa\u7840\u7b2c3\u96c6\uff1e\u6e05\u534e\u955c\u50cf\u6e90\u914d\u7f6e+\u7f51\u7edc\u57fa\u7840\u6982\u5ff5\u7406\u89e3(IP\u5730\u5740+\u7f51\u5361+\u7f51\u5173+\u5b50\u7f51\u63a9\u7801+DNS...)"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/62647","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=62647"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/62647\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=62647"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=62647"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=62647"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=62647"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}