{"id":208393,"date":"2025-09-03T20:47:41","date_gmt":"2025-09-03T12:47:41","guid":{"rendered":"https:\/\/www.server.hk\/blog\/?p=208393"},"modified":"2025-09-03T20:47:41","modified_gmt":"2025-09-03T12:47:41","slug":"%e4%bc%98%e5%8c%96%e7%bd%91%e7%bb%9c%e6%80%a7%e8%83%bd%ef%bc%9a%e6%b7%b1%e5%85%a5%e7%90%86%e8%a7%a3linux%e5%86%85%e6%a0%b8%e7%bd%91%e7%bb%9c%e4%b8%ad%e6%96%ad%e5%a4%84%e7%90%86","status":"publish","type":"post","link":"https:\/\/server.hk\/cnblog\/208393\/","title":{"rendered":"\u4f18\u5316\u7f51\u7edc\u6027\u80fd\uff1a\u6df1\u5165\u7406\u89e3Linux\u5185\u6838\u7f51\u7edc\u4e2d\u65ad\u5904\u7406"},"content":{"rendered":"<p dir=\"auto\">Linux\u5185\u6838\u7684\u7f51\u7edc\u4e2d\u65ad\u5904\u7406\u662f\u9ad8\u6548\u7f51\u7edc\u6570\u636e\u5904\u7406\u7684\u6838\u5fc3\u7ec4\u6210\u90e8\u5206\u3002\u672c\u6587\u4ece\u6280\u672f\u89d2\u5ea6\u8be6\u7ec6\u63a2\u8ba8\u4e86Linux\u5185\u6838\u5982\u4f55\u5904\u7406\u7f51\u7edc\u4e2d\u65ad\uff0c\u91cd\u70b9\u5206\u6790\u63a5\u6536\u548c\u5904\u7406\u7f51\u7edc\u6570\u636e\u5305\u7684\u673a\u5236\u3002\u901a\u8fc7\u7406\u89e3\u786c\u4ef6\u4e2d\u65ad\u3001\u8f6f\u4e2d\u65ad\u4ee5\u53ca\u534f\u8bae\u5904\u7406\u4e4b\u95f4\u7684\u534f\u4f5c\uff0c\u7cfb\u7edf\u7ba1\u7406\u5458\u548c\u5f00\u53d1\u8005\u80fd\u591f\u4f18\u5316\u9ad8\u541e\u5410\u91cf\u73af\u5883\u4e0b\u7684\u7f51\u7edc\u6027\u80fd\u3002<\/p>\n<h2 dir=\"auto\">\u7f51\u7edc\u6570\u636e\u5305\u5904\u7406\u6982\u8ff0<\/h2>\n<p dir=\"auto\">\u5f53\u7f51\u5361\uff08NIC\uff09\u4ece\u7f51\u7edc\u63a5\u6536\u5230\u6570\u636e\u65f6\uff0c\u4f1a\u89e6\u53d1\u786c\u4ef6\u4e2d\u65ad\u901a\u77e5CPU\u3002CPU\u968f\u540e\u8c03\u7528\u7f51\u5361\u9a71\u52a8\u6ce8\u518c\u7684\u4e2d\u65ad\u5904\u7406\u7a0b\u5e8f\uff0c\u4f8b\u5982NS8390\u9a71\u52a8\u7684ei_interrupt\u3002\u4e3a\u907f\u514d\u4e2d\u65ad\u4e22\u5931\u5e76\u786e\u4fdd\u7cfb\u7edf\u54cd\u5e94\u6027\uff0cLinux\u5c06\u4e2d\u65ad\u5904\u7406\u5206\u4e3a\u4e24\u4e2a\u9636\u6bb5\uff1a<\/p>\n<ul dir=\"auto\">\n<li><strong>\u4e0a\u534a\u90e8<\/strong>\uff1a\u5728\u7981\u7528\u786c\u4ef6\u4e2d\u65ad\u7684\u60c5\u51b5\u4e0b\u5feb\u901f\u6267\u884c\uff0c\u4ee5\u6700\u5c0f\u5316\u5ef6\u8fdf\u5e76\u9632\u6b62\u4e2d\u65ad\u4e22\u5931\u3002<\/li>\n<li><strong>\u4e0b\u534a\u90e8<\/strong>\uff1a\u5728\u542f\u7528\u4e2d\u65ad\u7684\u60c5\u51b5\u4e0b\u5904\u7406\u8017\u65f6\u4efb\u52a1\uff0c\u5141\u8bb8\u5176\u4ed6\u4e2d\u65ad\u88ab\u5904\u7406\u3002<\/li>\n<\/ul>\n<p dir=\"auto\">\u672c\u6587\u91cd\u70b9\u5206\u6790\u4e0b\u534a\u90e8\uff0c\u7279\u522b\u662f\u5904\u7406\u7f51\u7edc\u6570\u636e\u5305\u7684\u8f6f\u4e2d\u65ad\u673a\u5236\u3002<\/p>\n<h2 dir=\"auto\">\u4f7f\u7528netif_rx\u8fdb\u884c\u6570\u636e\u5305\u6392\u961f<\/h2>\n<p dir=\"auto\">netif_rx\u51fd\u6570\u5728\u5c06\u63a5\u6536\u5230\u7684\u6570\u636e\u5305\u6392\u961f\u4ee5\u4f9b\u540e\u7eed\u5904\u7406\u4e2d\u626e\u6f14\u5173\u952e\u89d2\u8272\uff0c\u5176\u4e3b\u8981\u4efb\u52a1\u5305\u62ec\uff1a<\/p>\n<ol dir=\"auto\">\n<li><strong>\u83b7\u53d6CPU\u4e13\u5c5e\u961f\u5217<\/strong>\uff1a\u83b7\u53d6\u5f53\u524dCPU\u7684\u5f85\u5904\u7406\u6570\u636e\u5305\u961f\u5217\uff08softnet_data\uff09\u4ee5\u5b58\u50a8\u63a5\u6536\u5230\u7684\u6570\u636e\u5305\u3002<\/li>\n<li><strong>\u68c0\u67e5\u961f\u5217\u9650\u5236<\/strong>\uff1a\u786e\u4fdd\u961f\u5217\u957f\u5ea6\u4e0d\u8d85\u8fc7\u53ef\u914d\u7f6e\u7684\u9608\u503cnetdev_max_backlog\uff0c\u4ee5\u9632\u6b62\u961f\u5217\u6ea2\u51fa\u3002<\/li>\n<li><strong>\u6570\u636e\u5305\u5165\u961f<\/strong>\uff1a\u4f7f\u7528__skb_queue_tail\u5c06\u6570\u636e\u5305\uff08sk_buff\uff09\u6dfb\u52a0\u5230\u961f\u5217\u5c3e\u90e8\u3002<\/li>\n<li><strong>\u89e6\u53d1\u8f6f\u4e2d\u65ad<\/strong>\uff1a\u901a\u8fc7\u5f15\u53d1NET_RX_SOFTIRQ\u8f6f\u4e2d\u65ad\u542f\u52a8\u4e0b\u534a\u90e8\u5904\u7406\u3002<\/li>\n<li><strong>\u5904\u7406\u6ea2\u51fa<\/strong>\uff1a\u5f53\u961f\u5217\u8d85\u8fc7netdev_max_backlog\u65f6\u4e22\u5f03\u6570\u636e\u5305\uff0c\u4ee5\u907f\u514d\u7cfb\u7edf\u8fc7\u8f7d\u3002<\/li>\n<\/ol>\n<h3 dir=\"auto\">\u5173\u952e\u6ce8\u610f\u4e8b\u9879<\/h3>\n<ul dir=\"auto\">\n<li><strong>\u961f\u5217\u7ba1\u7406<\/strong>\uff1a\u6bcf\u4e2aCPU\u7ef4\u62a4\u81ea\u5df1\u7684\u6570\u636e\u5305\u961f\u5217\uff0c\u786e\u4fdd\u591a\u6838\u7cfb\u7edf\u4e2d\u7684\u53ef\u6269\u5c55\u6027\u3002<\/li>\n<li><strong>\u6027\u80fd\u8c03\u4f18<\/strong>\uff1a\u8c03\u6574netdev_max_backlog\u53ef\u4f18\u5316\u9ad8\u6d41\u91cf\u573a\u666f\u7684\u6027\u80fd\uff0c\u4f46\u9700\u8c28\u614e\u4ee5\u907f\u514d\u6570\u636e\u5305\u4e22\u5931\u3002<\/li>\n<\/ul>\n<h3 dir=\"auto\">\u5904\u7406\u6d41\u7a0b<\/h3>\n<div dir=\"auto\">\n<div>\n<div><\/div>\n<\/div>\n<table dir=\"auto\" data-wide=\"false\">\n<thead>\n<tr>\n<th data-col-size=\"lg\">\u6b65\u9aa4<\/th>\n<th data-col-size=\"xl\">\u63cf\u8ff0<\/th>\n<th data-col-size=\"sm\">\u7ed3\u679c<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td data-col-size=\"lg\">1. \u83b7\u53d6\u961f\u5217<\/td>\n<td data-col-size=\"xl\">\u83b7\u53d6CPU\u4e13\u5c5e\u7684softnet_data<\/td>\n<td data-col-size=\"sm\">\u786e\u4fdd\u6309CPU\u5904\u7406<\/td>\n<\/tr>\n<tr>\n<td data-col-size=\"lg\">2. \u68c0\u67e5\u961f\u5217\u5927\u5c0f<\/td>\n<td data-col-size=\"xl\">\u6bd4\u8f83\u961f\u5217\u957f\u5ea6\u4e0enetdev_max_backlog<\/td>\n<td data-col-size=\"sm\">\u9632\u6b62\u961f\u5217\u6ea2\u51fa<\/td>\n<\/tr>\n<tr>\n<td data-col-size=\"lg\">3. \u6570\u636e\u5305\u5165\u961f<\/td>\n<td data-col-size=\"xl\">\u5c06\u6570\u636e\u5305\u6dfb\u52a0\u5230\u961f\u5217<\/td>\n<td data-col-size=\"sm\">\u51c6\u5907\u4e0b\u534a\u90e8\u5904\u7406<\/td>\n<\/tr>\n<tr>\n<td data-col-size=\"lg\">4. \u89e6\u53d1\u8f6f\u4e2d\u65ad<\/td>\n<td data-col-size=\"xl\">\u5f15\u53d1NET_RX_SOFTIRQ<\/td>\n<td data-col-size=\"sm\">\u542f\u52a8\u4e0b\u534a\u90e8\u5904\u7406<\/td>\n<\/tr>\n<tr>\n<td data-col-size=\"lg\">5. \u5904\u7406\u6ea2\u51fa<\/td>\n<td data-col-size=\"xl\">\u82e5\u961f\u5217\u5df2\u6ee1\u5219\u4e22\u5f03\u6570\u636e\u5305<\/td>\n<td data-col-size=\"sm\">\u7ef4\u62a4\u7cfb\u7edf\u7a33\u5b9a\u6027<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<h2 dir=\"auto\">\u4f7f\u7528net_rx_action\u8fdb\u884c\u4e0b\u534a\u90e8\u5904\u7406<\/h2>\n<p dir=\"auto\">net_rx_action\u51fd\u6570\u4f5c\u4e3aNET_RX_SOFTIRQ\u8f6f\u4e2d\u65ad\u7684\u4e00\u90e8\u5206\uff0c\u8d1f\u8d23\u5904\u7406\u961f\u5217\u4e2d\u7684\u6570\u636e\u5305\u3002\u5176\u4e3b\u8981\u804c\u8d23\u5305\u62ec\uff1a<\/p>\n<ol dir=\"auto\">\n<li><strong>\u53d6\u51fa\u6570\u636e\u5305<\/strong>\uff1a\u4f7f\u7528__skb_dequeue\u4eceCPU\u7684softnet_data\u961f\u5217\u4e2d\u83b7\u53d6\u6570\u636e\u5305\u3002<\/li>\n<li><strong>\u8bc6\u522b\u534f\u8bae<\/strong>\uff1a\u4ece\u6570\u636e\u5305\u7684\u4ee5\u592a\u7f51\u5934\u90e8\uff08skb-&gt;protocol\uff09\u63d0\u53d6\u7f51\u7edc\u5c42\u534f\u8bae\u7c7b\u578b\u3002<\/li>\n<li><strong>\u8def\u7531\u5230\u5904\u7406\u7a0b\u5e8f<\/strong>\uff1a\u6839\u636e\u534f\u8bae\u7c7b\u578b\u5728ptype_base\u6570\u7ec4\u4e2d\u5339\u914d\u6ce8\u518c\u7684\u5904\u7406\u7a0b\u5e8f\uff0c\u5e76\u8c03\u7528\u76f8\u5e94\u51fd\u6570\uff0c\u4f8b\u5982IP\u6570\u636e\u5305\u7684ip_rcv\u3002<\/li>\n<\/ol>\n<h3 dir=\"auto\">\u534f\u8bae\u5904\u7406\u7a0b\u5e8f\u6ce8\u518c<\/h3>\n<p dir=\"auto\">\u7f51\u7edc\u5c42\u534f\u8bae\u5728ptype_base\u6570\u7ec4\u4e2d\u6ce8\u518c\uff0c\u8fd9\u662f\u4e00\u4e2a\u4ee5\u534f\u8bae\u7c7b\u578b\u4e3a\u7d22\u5f15\u7684\u54c8\u5e0c\u8868\u3002\u901a\u8fc7dev_add_pack\u51fd\u6570\u5904\u7406\u6ce8\u518c\uff0c\u652f\u6301\u51b2\u7a81\u89e3\u51b3\uff0c\u4f8b\u5982\u901a\u8fc7next\u6307\u9488\u94fe\u63a5\u51b2\u7a81\u7684\u5904\u7406\u7a0b\u5e8f\u3002\u4f8b\u5982\uff1a<\/p>\n<ul dir=\"auto\">\n<li><strong>IP\u534f\u8bae\u6ce8\u518c<\/strong>\uff1a\n<div dir=\"auto\">\n<div data-testid=\"code-block\">\n<div>c<\/div>\n<div>\n<div>\n<div><\/div>\n<\/div>\n<\/div>\n<div><code><\/code><\/p>\n<div>\n<div>\n<div>static struct packet_type ip_packet_type = {<\/div>\n<div>.type = __constant_htons(ETH_P_IP),<\/div>\n<div>.func = ip_rcv,<\/div>\n<div>.dev = NULL<\/div>\n<div>};<\/div>\n<div><\/div>\n<div>void __init ip_init(void) {<\/div>\n<div>dev_add_pack(&amp;ip_packet_type);<\/div>\n<div>}<\/div>\n<\/div>\n<\/div>\n<\/div>\n<div><\/div>\n<div><\/div>\n<\/div>\n<\/div>\n<\/li>\n<\/ul>\n<h3 dir=\"auto\">\u5173\u952e\u6ce8\u610f\u4e8b\u9879<\/h3>\n<ul dir=\"auto\">\n<li><strong>\u53ef\u6269\u5c55\u6027<\/strong>\uff1a\u54c8\u5e0c\u8868\u7ed3\u6784\u652f\u6301\u591a\u79cd\u534f\u8bae\uff0c\u901a\u8fc7\u94fe\u8868\u89e3\u51b3\u51b2\u7a81\u3002<\/li>\n<li><strong>\u6027\u80fd<\/strong>\uff1a\u5728\u51fa\u961f\u65f6\u77ed\u6682\u7981\u7528\u4e2d\u65ad\u4ee5\u786e\u4fdd\u7ebf\u7a0b\u5b89\u5168\uff0c\u540c\u65f6\u907f\u514d\u663e\u8457\u5ef6\u8fdf\u3002<\/li>\n<\/ul>\n<h2 dir=\"auto\">\u4f7f\u7528ip_rcv\u5904\u7406IP\u6570\u636e\u5305<\/h2>\n<p dir=\"auto\">\u5bf9\u4e8eIP\u6570\u636e\u5305\uff0cip_rcv\u51fd\u6570\u6267\u884c\u521d\u6b65\u9a8c\u8bc1\uff0c\u786e\u4fdd\u6570\u636e\u5305\u5408\u6cd5\u6027\uff1a<\/p>\n<ol dir=\"auto\">\n<li><strong>\u68c0\u67e5\u6570\u636e\u5305\u7c7b\u578b<\/strong>\uff1a\u4e22\u5f03\u975e\u672c\u673a\u76ee\u6807\u7684\u6570\u636e\u5305\uff08PACKET_OTHERHOST\uff09\u3002<\/li>\n<li><strong>\u9a8c\u8bc1\u957f\u5ea6<\/strong>\uff1a\u786e\u4fdd\u6570\u636e\u5305\u957f\u5ea6\u4e0eIP\u5934\u90e8\u6307\u5b9a\u957f\u5ea6\u4e00\u81f4\u3002<\/li>\n<li><strong>\u68c0\u67e5\u5934\u90e8\u5b8c\u6574\u6027<\/strong>\uff1a\u9a8c\u8bc1IP\u5934\u90e8\u7684\u7248\u672c\u3001\u957f\u5ea6\u548c\u6821\u9a8c\u548c\u3002<\/li>\n<li><strong>\u8fdb\u5165\u4e0b\u4e00\u9636\u6bb5<\/strong>\uff1a\u82e5\u9a8c\u8bc1\u901a\u8fc7\uff0c\u901a\u8fc7Netfilter\u94a9\u5b50NF_IP_PRE_ROUTING\u5c06\u6570\u636e\u5305\u4f20\u9012\u7ed9ip_rcv_finish\u3002<\/li>\n<\/ol>\n<h3 dir=\"auto\">ip_rcv_finish\u4e0e\u8def\u7531\u5904\u7406<\/h3>\n<p dir=\"auto\">ip_rcv_finish\u51fd\u6570\u8d1f\u8d23\u8bbe\u7f6e\u8def\u7531\u4fe1\u606f\uff1a<\/p>\n<ul dir=\"auto\">\n<li><strong>\u8def\u7531\u67e5\u627e<\/strong>\uff1a\u82e5\u672a\u7f13\u5b58\u8def\u7531\u4fe1\u606f\uff0c\u5219\u8c03\u7528ip_route_input\u786e\u5b9a\u6570\u636e\u5305\u76ee\u6807\u3002<\/li>\n<li><strong>\u672c\u5730\u6295\u9012<\/strong>\uff1a\u82e5\u6570\u636e\u5305\u76ee\u6807\u4e3a\u672c\u673a\uff0c\u5219\u8c03\u7528ip_local_deliver\u3002<\/li>\n<\/ul>\n<h3 dir=\"auto\">IP\u5206\u7247\u5904\u7406<\/h3>\n<p dir=\"auto\">ip_local_deliver\u51fd\u6570\u5904\u7406IP\u5206\u7247\uff1a<\/p>\n<ul dir=\"auto\">\n<li><strong>\u5206\u7247\u91cd\u7ec4<\/strong>\uff1a\u8c03\u7528ip_defrag\u91cd\u7ec4\u5206\u7247\u6570\u636e\u5305\u3002<\/li>\n<li><strong>\u4f20\u9012\u81f3\u4f20\u8f93\u5c42<\/strong>\uff1a\u5c06\u91cd\u7ec4\u540e\u7684\u6570\u636e\u5305\u4f20\u9012\u7ed9ip_local_deliver_finish\u3002<\/li>\n<\/ul>\n<h3 dir=\"auto\">\u4f20\u8f93\u5c42\u5904\u7406<\/h3>\n<p dir=\"auto\">ip_local_deliver_finish\u51fd\u6570\u5c06\u6570\u636e\u5305\u8def\u7531\u5230\u9002\u5f53\u7684\u4f20\u8f93\u5c42\u534f\u8bae\uff1a<\/p>\n<ol dir=\"auto\">\n<li><strong>\u8bc6\u522b\u534f\u8bae<\/strong>\uff1a\u4eceIP\u5934\u90e8\u63d0\u53d6\u4f20\u8f93\u5c42\u534f\u8bae\u7c7b\u578b\u3002<\/li>\n<li><strong>\u67e5\u627e\u5904\u7406\u7a0b\u5e8f<\/strong>\uff1a\u4eceinet_protos\u6570\u7ec4\u4e2d\u83b7\u53d6\u5bf9\u5e94\u7684\u5904\u7406\u51fd\u6570\u3002<\/li>\n<li><strong>\u8c03\u7528\u5904\u7406\u7a0b\u5e8f<\/strong>\uff1a\u8c03\u7528\u534f\u8bae\u7279\u5b9a\u7684\u5904\u7406\u51fd\u6570\uff0c\u4f8b\u5982TCP\u6570\u636e\u5305\u7684tcp_v4_rcv\u3002<\/li>\n<\/ol>\n<h3 dir=\"auto\">\u4f20\u8f93\u5c42\u534f\u8bae\u6ce8\u518c<\/h3>\n<p dir=\"auto\">\u4f20\u8f93\u5c42\u5904\u7406\u7a0b\u5e8f\u6ce8\u518c\u5728inet_protos\u6570\u7ec4\u4e2d\uff0c\u7c7b\u4f3c\u4e8eptype_base\u3002\u4f8b\u5982\uff1a<\/p>\n<ul dir=\"auto\">\n<li><strong>TCP\u5904\u7406\u7a0b\u5e8f<\/strong>\uff1a\n<div dir=\"auto\">\n<div data-testid=\"code-block\">\n<div>c<\/div>\n<div>\n<div>\n<div><\/div>\n<\/div>\n<\/div>\n<div><code><\/code><\/p>\n<div>\n<div>\n<div>static struct inet_protocol tcp_protocol = {<\/div>\n<div>.handler = tcp_v4_rcv,<\/div>\n<div>.protocol = IPPROTO_TCP<\/div>\n<div>};<\/div>\n<\/div>\n<\/div>\n<\/div>\n<div><\/div>\n<div><\/div>\n<\/div>\n<\/div>\n<\/li>\n<\/ul>\n<h2 dir=\"auto\">\u4f18\u5316\u6700\u4f73\u5b9e\u8df5<\/h2>\n<p dir=\"auto\">\u4e3a\u4f18\u5316Linux\u7f51\u7edc\u4e2d\u65ad\u5904\u7406\uff0c\u5efa\u8bae\u4ee5\u4e0b\u5b9e\u8df5\uff1a<\/p>\n<ul dir=\"auto\">\n<li><strong>\u8c03\u6574netdev_max_backlog<\/strong>\uff1a\u5728\u9ad8\u6d41\u91cf\u7cfb\u7edf\u4e2d\u9002\u5f53\u589e\u52a0\uff0c\u4f46\u9700\u76d1\u63a7\u6570\u636e\u5305\u4e22\u5931\u60c5\u51b5\u3002<\/li>\n<li><strong>\u4f7f\u7528\u591a\u961f\u5217\u7f51\u5361<\/strong>\uff1a\u5229\u7528\u63a5\u6536\u6570\u636e\u5305\u5206\u6d41\uff08RPS\uff09\u5c06\u4e2d\u65ad\u5206\u5e03\u5230\u591a\u4e2aCPU\u3002<\/li>\n<li><strong>\u76d1\u63a7\u8f6f\u4e2d\u65ad\u8d1f\u8f7d<\/strong>\uff1a\u786e\u4fdd\u8f6f\u4e2d\u65ad\u5904\u7406\u4e0d\u4f1a\u8fc7\u5ea6\u5360\u7528CPU\u8d44\u6e90\u3002<\/li>\n<li><strong>\u542f\u7528NAPI<\/strong>\uff1a\u5728\u9ad8\u541e\u5410\u91cf\u573a\u666f\u4e2d\u4f7f\u7528\u65b0API\uff08NAPI\uff09\u4ee5\u964d\u4f4e\u4e2d\u65ad\u5f00\u9500\u3002<\/li>\n<\/ul>\n<h2 dir=\"auto\">\u7ed3\u8bba<\/h2>\n<p dir=\"auto\">\u6df1\u5165\u7406\u89e3Linux\u5185\u6838\u7f51\u7edc\u4e2d\u65ad\u5904\u7406\u5bf9\u4f18\u5316\u7f51\u7edc\u6027\u80fd\u81f3\u5173\u91cd\u8981\u3002\u4e0a\u534a\u90e8\u4e0e\u4e0b\u534a\u90e8\u7684\u5206\u5de5\u786e\u4fdd\u4e86\u9ad8\u6548\u7684\u6570\u636e\u5305\u5904\u7406\uff0cnetif_rx\u8d1f\u8d23\u6570\u636e\u5305\u6392\u961f\uff0cnet_rx_action\u5219\u5c06\u6570\u636e\u5305\u8def\u7531\u81f3\u534f\u8bae\u5904\u7406\u7a0b\u5e8f\u3002\u4ece\u9a8c\u8bc1\u5230\u4f20\u8f93\u5c42\u4ea4\u4ed8\u7684IP\u6570\u636e\u5305\u5904\u7406\u6d41\u7a0b\u517c\u987e\u4e86\u53ef\u9760\u6027\u548c\u53ef\u6269\u5c55\u6027\u3002\u901a\u8fc7\u5e94\u7528\u6700\u4f73\u5b9e\u8df5\uff0c\u7cfb\u7edf\u7ba1\u7406\u5458\u53ef\u5728\u9ad8\u8d1f\u8f7d\u73af\u5883\u4e2d\u5b9e\u73b0\u7a33\u5b9a\u7684\u7f51\u7edc\u6027\u80fd\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Linux\u5185\u6838\u7684\u7f51\u7edc\u4e2d\u65ad\u5904\u7406\u662f\u9ad8&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4924],"tags":[],"class_list":["post-208393","post","type-post","status-publish","format-standard","hentry","category-setup-tutorials"],"_links":{"self":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/208393","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/comments?post=208393"}],"version-history":[{"count":0,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/208393\/revisions"}],"wp:attachment":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/media?parent=208393"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/categories?post=208393"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/tags?post=208393"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}