{"id":8986,"date":"2022-10-09T22:06:38","date_gmt":"2022-10-09T14:06:38","guid":{"rendered":"http:\/\/139.9.1.231\/?p=8986"},"modified":"2022-10-10T10:43:13","modified_gmt":"2022-10-10T02:43:13","slug":"adeersds","status":"publish","type":"post","link":"http:\/\/139.9.1.231\/index.php\/2022\/10\/09\/adeersds\/","title":{"rendered":"\u672c\u5730\u56de\u73af\u5730\u5740"},"content":{"rendered":"\n<p>\u672c\u5730\u56de\u73af\u5730\u5740\uff08Loopback Address\uff09\u901a\u5e38\u662f\u6307127.0.0.1\uff0c\u4e0d\u5c5e\u4e8e\u4efb\u4f55\u4e00\u4e2a\u6709\u7c7b\u522b\u5730\u5740\u7c7b\u3002\u4e00\u822c\u90fd\u4f1a\u7528\u6765\u68c0\u67e5\u672c\u5730\u7f51\u7edc\u534f\u8bae\u3001\u57fa\u672c\u6570\u636e\u63a5\u53e3\u7b49\u662f\u5426\u6b63\u5e38\u7684\u3002<\/p>\n\n\n\n<p>\u5728\u5f00\u53d1\u6216\u8005\u8c03\u8bd5\u65f6\uff0c\u6211\u4eec\u7ecf\u5e38\u9700\u8981\u548c\u672c\u5730\u7684\u670d\u52a1\u5668\u8fdb\u884c\u901a\u4fe1\uff0c\u4f8b\u5982\u542f\u52a8<code>nginx<\/code>\u4e4b\u540e\uff0c\u5728\u6d4f\u89c8\u5668\u8f93\u5165<code>lcoalhost<\/code>\u6216\u8005<code>127.0.0.1<\/code>\u5c31\u53ef\u4ee5\u8bbf\u95ee\u5230\u672c\u673a\u4e0a\u9762\u7684<code>http<\/code>\u670d\u52a1\u3002<\/p>\n\n\n\n<h2><strong>Linux\u662f\u5982\u4f55\u8bbf\u95ee\u672c\u673aIP\u7684\uff1f<\/strong><\/h2>\n\n\n\n<p>\u5927\u591a\u6570\u64cd\u4f5c\u7cfb\u7edf\u90fd\u5728\u7f51\u7edc\u5c42\u5b9e\u73b0\u4e86\u73af\u56de\u80fd\u529b\uff0c\u901a\u5e38\u662f\u4f7f\u7528\u4e00\u4e2a\u865a\u62df\u7684\u73af\u56de\u7f51\u7edc\u63a5\u53e3\u6765\u5b9e\u73b0\u3002\u8fd9\u4e2a\u865a\u62df\u7684\u73af\u56de\u7f51\u7edc\u63a5\u53e3\u770b\u7740\u50cf\u662f\u4e00\u4e2a\u771f\u5b9e\u7684\u7f51\u5361\uff0c\u5b9e\u9645\u4e0a\u662f\u64cd\u4f5c\u7cfb\u7edf\u7528\u8f6f\u4ef6\u6a21\u62df\u7684\uff0c\u5b83\u53ef\u4ee5\u901a\u8fc7<code>TCP\/IP<\/code>\u4e0e\u540c\u4e00\u53f0\u4e3b\u673a\u4e0a\u7684\u5176\u4ed6\u670d\u52a1\u8fdb\u884c\u901a\u4fe1\uff0c\u4ee5<code>127<\/code>\u5f00\u5934\u7684<code>IPv4<\/code>\u5730\u5740\u5c31\u662f\u4e3a\u5b83\u4fdd\u7559\u7684\uff0c\u4e3b\u6d41<code>Linux<\/code>\u64cd\u4f5c\u7cfb\u7edf\u4e3a\u73af\u56de\u7f51\u5361\u5206\u914d\u7684\u5730\u5740\u90fd\u662f<code>127.0.0.1<\/code>\uff0c\u4e3b\u673a\u540d\u662f<code>localhost<\/code>\u3002<\/p>\n\n\n\n<p>\u73af\u56de\u7f51\u7edc\u63a5\u53e3\u4e4b\u6240\u4ee5\u88ab\u79f0\u4e4b\u4e3a\u73af\u56de\u7f51\u7edc\u63a5\u53e3\uff0c\u662f\u56e0\u4e3a\u4ece\u672c\u673a\u53d1\u9001\u5230\u672c\u673a\u4efb\u610f\u4e00\u4e2aIP\u7684\u6570\u636e\u62a5\u6587\u90fd\u4f1a\u5728\u7f51\u7edc\u5c42\u4ea4\u7ed9\u73af\u56de\u7f51\u7edc\u63a5\u53e3\uff0c\u4e0d\u518d\u4e0b\u53d1\u5230\u6570\u636e\u94fe\u8def\u5c42\u8fdb\u884c\u5904\u7406\uff0c\u73af\u56de\u7f51\u7edc\u63a5\u53e3\u76f4\u63a5\u53d1\u9001\u56de\u7f51\u7edc\u5c42\uff0c\u6700\u7ec8\u4ea4\u7531\u5e94\u7528\u5c42\u8f6f\u4ef6\u7a0b\u5e8f\u8fdb\u884c\u5904\u7406\u3002\u8fd9\u79cd\u65b9\u5f0f\u5bf9\u4e8e\u6027\u80fd\u6d4b\u8bd5\u975e\u5e38\u6709\u7528\uff0c\u56e0\u4e3a\u7701\u53bb\u4e86\u786c\u4ef6\u7684\u5f00\u9500\uff0c\u53ef\u4ee5\u76f4\u63a5\u6d4b\u8bd5\u534f\u8bae\u6808\u8f6f\u4ef6\u6240\u9700\u8981\u7684\u65f6\u95f4\u3002<\/p>\n\n\n\n<p>\u90a3\u73af\u56de\u7f51\u7edc\u63a5\u53e3\u662f\u5982\u4f55\u5224\u65ad\u76ee\u7684IP\u662f\u5426\u4e3a\u672c\u673a\u5730\u5740\u7684\u5462\uff1f<\/p>\n\n\n\n<p>\u7b54\u6848\u5c31\u662f\u7f51\u7edc\u5c42\u5728\u8fdb\u884c\u8def\u7531\u8f6c\u53d1\u7684\u65f6\u5019\u4f1a\u5148\u67e5\u672c\u5730\u7684\u8def\u7531\u8868\uff0c\u53d1\u73b0\u662f\u672c\u673aIP\u540e\u4ea4\u7ed9\u73af\u56de\u7f51\u7edc\u63a5\u53e3\u3002\u67e5\u770b\u672c\u5730\u8def\u7531\u8868\u7684\u547d\u4ee4\u5982\u4e0b\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>ip route show table local\n<\/code><\/pre>\n\n\n\n<p>\u8f93\u51fa\u5185\u5bb9\u5982\u4e0b\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>broadcast 10.141.128.0 dev eth0 proto kernel scope link src 10.141.155.131 \nlocal 10.141.155.131 dev eth0 proto kernel scope host src 10.141.155.131 \nbroadcast 10.141.191.255 dev eth0 proto kernel scope link src 10.141.155.131 \nbroadcast 127.0.0.0 dev lo proto kernel scope link src 127.0.0.1 \nlocal 127.0.0.0\/8 dev lo proto kernel scope host src 127.0.0.1 \nlocal 127.0.0.1 dev lo proto kernel scope host src 127.0.0.1\n<\/code><\/pre>\n\n\n\n<p>\u5176\u4e2d<code>local<\/code>\u5f00\u5934\u7684\u4fbf\u662f\u672c\u5730IP\uff0c<code>dev<\/code>\u540e\u9762\u662f\u7f51\u5361\u540d\u79f0\u3002<\/p>\n\n\n\n<p>\u67e5\u5b8c\u4e86\u672c\u5730\u8def\u7531\u8868\u4e4b\u540e\u4f1a\u518d\u67e5\u4e3b\u8def\u7531\u8868\uff0c\u4e5f\u5c31\u662f\u6211\u4eec\u7ecf\u5e38\u64cd\u4f5c\u7684\u8def\u7531\u8868\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>ip route show table main\n<\/code><\/pre>\n\n\n\n<p>\u8f93\u51fa\u5185\u5bb9\u5982\u4e0b<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>default via 10.141.128.1 dev eth0 proto static metric 100 \n10.141.128.0\/18 dev eth0 proto kernel scope link src 10.141.155.131 metric 100\n<\/code><\/pre>\n\n\n\n<h2><strong>\u73af\u56de\u7f51\u7edc\u63a5\u53e3<\/strong><\/h2>\n\n\n\n<p>\u73b0\u5728\u6211\u4eec\u518d\u6765\u770b\u4e0b\u73af\u56de\u7f51\u7edc\u63a5\u53e3<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>ifconfig lo\n<\/code><\/pre>\n\n\n\n<p>\u8f93\u51fa<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>lo: flags=73&lt;UP,LOOPBACK,RUNNING&gt;  mtu 65536\n        inet 127.0.0.1  netmask 255.0.0.0\n        inet6 ::1  prefixlen 128  scopeid 0x10&lt;host&gt;\n        loop  txqueuelen 1000  (Local Loopback)\n        RX packets 1554227  bytes 123327716 (117.6 MiB)\n        RX errors 0  dropped 0  overruns 0  frame 0\n        TX packets 1554227  bytes 123327716 (117.6 MiB)\n        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0\n<\/code><\/pre>\n\n\n\n<p>\u53ef\u4ee5\u770b\u5230\u672c\u5730\u73af\u56de\u63a5\u53e3\u7684<code>IPv4<\/code>\u5730\u5740\u662f<code>127.0.0.1<\/code>\uff0c\u5b50\u7f51\u63a9\u7801\u662f<code>255.0.0.0<\/code>\uff0c\u5bf9\u5e94A\u7c7b\u7f51\u7edc\u53f7<code>127<\/code>\uff0c\u6709\u8da3\u7684\u662f\u5f53\u6211\u4eec\u8bbf\u95ee&nbsp;<code>127.0.0.1-127.255.255.254<\/code>\u4e4b\u95f4\u7684\u4efb\u610f\u4e00\u4e2a\u5730\u5740\u90fd\u4f1a\u8bbf\u95ee\u5230\u672c\u673a\u3002<\/p>\n\n\n\n<p><code>IPv6<\/code>\u5730\u5740<code>::1<\/code>\uff0c\u524d\u7f00\u662f<code>128<\/code>\u4f4d\uff0c\u8868\u793a\u53ea\u6709\u4e00\u4e2a\u5730\u5740\u3002<\/p>\n\n\n\n<p>\u73af\u56de\u7f51\u7edc\u63a5\u53e3\u7684\u5f53\u524d<code>MTU<\/code>\u662f<code>64KB<\/code>\uff0c\u4e0d\u8fc7\u6700\u9ad8\u53ef\u4ee5\u8bbe\u7f6e\u5230<code>2GB<\/code>\uff0c\u771f\u662f\u6050\u6016\u5982\u65af\u3002<\/p>\n\n\n\n<p>\u4e0b\u9762\u51e0\u6761<code>RX<\/code>,<code>TX<\/code>\u5f00\u5934\u7684\u5206\u522b\u4ee3\u8868\u6536\u53d1\u5230\u7684\u6570\u636e\u62a5\u6587\u4e2a\u6570\u548c\u5927\u5c0f\u4ee5\u53ca\u9519\u5305\u3001\u4e22\u5305\u3001\u6ea2\u51fa\u6b21\u6570\u548c\u65e0\u6548\u5e27\u3002<\/p>\n\n\n\n<h2> \u6392\u67e5\u7f51\u5361 <\/h2>\n\n\n\n<p>\u6392\u67e5\u7f51\u5361\u786c\u4ef6\u95ee\u9898\u7684\u7b80\u4fbf\u529e\u6cd5\uff0c\u5728\u8f6f\u4ef6\u65b9\u9762\u90fd\u68c0\u67e5\u4e0d\u5230\u95ee\u9898\u800c\u4e14\u7269\u7406\u5c42\u5916\u90e8\u8bbe\u5907\u4e5f\u5de5\u4f5c\u6b63\u5e38\u7684\u60c5\u51b5\u4e0b\u53ef\u4ee5\u91c7\u7528\uff0c\u6216\u8bb8\u5c31\u662f\u4f60\u7684\u6551\u547d\u7a3b\u8349\uff01windows+R\u952e\u6253\u5f00\u201c\u8fd0\u884c\u201d\u7a97\u53e3\uff0c\u8f93\u5165cmd\u56de\u8f66\u6253\u5f00\u201c\u547d\u4ee4\u63d0\u793a\u7b26\u7a97\u53e3\u201d\uff0c\u7136\u540e\u8f93\u5165ping 127.0.0.1 \u56de\u8f66\uff0c\u5982\u679c\u8fd4\u56de\u503c\u6b63\u5e38\u8bf4\u660e\u7f51\u5361\u786c\u4ef6\u6ca1\u6709\u95ee\u9898\uff0c\u53cd\u4e4b\u5c31\u53ef\u4ee5\u8003\u8651\u7f51\u5361\u786c\u4ef6\u7684\u4fee\u590d\u4e86\uff01\u539f\u7406\u5f88\u7b80\u5355\uff0c\u5229\u7528ping\u547d\u4ee4\u4ee5\u53ca\u672c\u5730\u56de\u73af\u5730\u5740(127.0.0.1)\uff0c\u901a\u4fd7\u7684\u8bf4\u5c31\u662f127.0.0.1\u8fd9\u4e2a\u5730\u5740\u4f1a\u7ed9\u81ea\u5df1\u7684\u7269\u7406\u5730\u5740\u53d1\u9001\u4fe1\u606f\uff0c\u5373\u4f7f\u5728\u65ad\u7f51\u7684\u6761\u4ef6\u4e0b\u6b63\u5e38\u7684\u7f51\u5361\u4e5f\u5e94\u8be5ping\u7684\u901a\uff0c\u6240\u4ee5\u5982\u679c\u4e0d\u901a\uff0c\u5c31\u53ea\u80fd\u8bf4\u660e\u662f\u7f51\u5361\u786c\u4ef6\u95ee\u9898\u4e86\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u672c\u5730\u56de\u73af\u5730\u5740\uff08Loopback Address\uff09\u901a\u5e38\u662f\u6307127.0.0.1\uff0c\u4e0d\u5c5e\u4e8e\u4efb\u4f55\u4e00\u4e2a\u6709\u7c7b\u522b\u5730\u5740\u7c7b\u3002\u4e00\u822c\u90fd &hellip; <a href=\"http:\/\/139.9.1.231\/index.php\/2022\/10\/09\/adeersds\/\" class=\"more-link\">\u7ee7\u7eed\u9605\u8bfb<span class=\"screen-reader-text\">\u672c\u5730\u56de\u73af\u5730\u5740<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[3,32],"tags":[],"_links":{"self":[{"href":"http:\/\/139.9.1.231\/index.php\/wp-json\/wp\/v2\/posts\/8986"}],"collection":[{"href":"http:\/\/139.9.1.231\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/139.9.1.231\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/139.9.1.231\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/139.9.1.231\/index.php\/wp-json\/wp\/v2\/comments?post=8986"}],"version-history":[{"count":5,"href":"http:\/\/139.9.1.231\/index.php\/wp-json\/wp\/v2\/posts\/8986\/revisions"}],"predecessor-version":[{"id":8991,"href":"http:\/\/139.9.1.231\/index.php\/wp-json\/wp\/v2\/posts\/8986\/revisions\/8991"}],"wp:attachment":[{"href":"http:\/\/139.9.1.231\/index.php\/wp-json\/wp\/v2\/media?parent=8986"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/139.9.1.231\/index.php\/wp-json\/wp\/v2\/categories?post=8986"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/139.9.1.231\/index.php\/wp-json\/wp\/v2\/tags?post=8986"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}