{"id":1001,"date":"2022-12-20T16:00:39","date_gmt":"2022-12-20T08:00:39","guid":{"rendered":"https:\/\/vmlogin.us\/help\/zh\/?p=1001"},"modified":"2023-02-03T14:38:25","modified_gmt":"2023-02-03T06:38:25","slug":"%e4%bc%98%e5%8c%96%e7%bd%91%e7%bb%9c%ef%bc%8c%e6%8f%90%e5%8d%87win%e9%95%bf%e6%97%b6%e9%97%b4%e8%87%aa%e5%8a%a8%e5%8c%96%e7%a8%b3%e5%ae%9a%e6%80%a7","status":"publish","type":"post","link":"https:\/\/www.vmlogin.us\/help\/zh\/api\/optimize-the-network.html","title":{"rendered":"\u4f18\u5316\u7f51\u7edc\uff0c\u63d0\u5347Win\u957f\u65f6\u95f4\u81ea\u52a8\u5316\u7a33\u5b9a\u6027"},"content":{"rendered":"\n<p class=\"has-medium-font-size\">1. \u5728\u7535\u8111\u4e0a\u957f\u65f6\u95f4\u8dd1\u81ea\u52a8\u5316\u4efb\u52a1\uff0c\u6709\u53ef\u80fd\u4f1a\u51fa\u73b0\u00a0<mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-cyan-blue-color\">\u201cFailed to establish a new connection: [WinError 10048]\u201d<\/mark>\u00a0\u901a\u5e38\u6bcf\u4e2a\u5957\u63a5\u5b57\u5730\u5740(\u534f\u8bae\/\u7f51\u7edc\u5730\u5740\/\u7aef\u53e3)\u53ea\u5141\u8bb8\u4f7f\u7528\u4e00\u6b21\u7684\u63d0\u793a\u3002<br><br><\/p>\n\n\n\n<p class=\"has-medium-font-size\">2. \u53ef\u4ee5\u4fee\u6539\u6ce8\u518c\u8868\u9879\uff0c\u8981\u63d0\u5347\u7535\u8111\u7684\u7f51\u7edc\u6027\u80fd\u3002<br><br><\/p>\n\n\n\n<p class=\"has-medium-font-size\">3. \u4f7f\u7528<mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-cyan-blue-color\">regedit<\/mark>\u547d\u4ee4\u8bbf<\/p>\n\n\n\n<p class=\"has-medium-font-size\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-cyan-blue-color\">HKEY_LOCAL_MACHINE\/SYSTEM\/CurrentControlSet\/Services\/TCPIP\/Parameters<\/mark>\u6ce8\u518c\u8868\u5b50\u952e\u5e76\u521b\u5efa\u540d\u4e3a<mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-cyan-blue-color\">TcpTimedWaitDelay\u7684\u65b0REG_DWORD\u503c<\/mark>\u3002\u5c06\u6b64\u503c\u8bbe\u7f6e\u4e3a\u5341\u8fdb\u523630\uff0c\u5176\u4e3a\u5341\u516d\u8fdb\u52360x0000001e\u3002\u8be5\u503c\u5c06\u7b49\u5f85\u65f6\u95f4\u8bbe\u7f6e\u4e3a30\u79d2\u3002<br><br><\/p>\n\n\n\n<p class=\"has-medium-font-size\">4. \u4f7f\u7528<mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-cyan-blue-color\">regedit<\/mark>\u547d\u4ee4<\/p>\n\n\n\n<p class=\"has-medium-font-size\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-cyan-blue-color\">HKEY_LOCAL_MACHINE\/SYSTEM\/CurrentControlSet\/Services\/TCPIP\/Parameters<\/mark>\u6ce8\u518c\u8868\u5b50\u952e\u5e76\u521b\u5efa\u540d\u4e3a<mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-cyan-blue-color\">MaxUserPort\u7684\u65b0REG_DWORD\u503c<\/mark>\u3002\u505c\u6b62\u5e76\u91cd\u65b0\u542f\u52a8\u7cfb\u7edf\u3002\u7f3a\u7701\u503c\uff1a\u65e0\uff1b \u5efa\u8bae\u503c\uff1a\u81f3\u5c11\u5341\u8fdb\u5236 32768\u3002<br><br><\/p>\n\n\n\n<p class=\"has-medium-font-size\">5. \u4e0d\u77e5\u9053\u600e\u4e48\u6253\u5f00\u6ce8\u518c\u8868\u7684\u7528\u6237\uff0c\u53ef\u4ee5\u76f4\u63a5<mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-cyan-blue-color\">\u65b0\u5efa\u4e00\u4e2aTXT\u6587\u6863<\/mark>\uff0c\u628a\u4e0b\u9762\u5185\u5bb9\u5199\u5165\u5176\u4e2d\u4fdd\u5b58\uff0c\u518d\u6539\u8fd9\u4e2a\u65b0\u5efa\u7684\u6587\u4ef6\u540d\u4e3a<mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-cyan-blue-color\">Tcpip.reg<\/mark>\u00a0\uff0c\u53cc\u51fb\u5bfc\u5165\u6ce8\u518c\u8868\u5373\u53ef\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Windows Registry Editor Version 5.00\n\n&#91;HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\Tcpip\\Parameters]\n\"TcpTimedWaitDelay\"=dword:0000001e\n\"MaxUserPort\"=dword:00008000<\/code><\/pre>\n\n\n\n<p class=\"has-medium-font-size\"><br><br><\/p>\n\n\n\n<p class=\"has-medium-font-size\">6. \u5f53\u5728\u8c03\u7528\u63a5\u53e3\u65f6\uff0c\u4f7f\u7528<mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-cyan-blue-color\">\u547d\u4ee4\u884c\u5de5\u5177netstat -n<\/mark>\u53d1\u73b0\u6709\u5c06\u8fd14000\u4e2a\u5230\u8fd0\u884c\u63a5\u53e3\u7684\u76ee\u6807\u8ba1\u7b97\u673a\u7684IP\u5730\u5740\u7684\u8fde\u63a5\u5904\u4e8eTIME_WAIT\u72b6\u6001\uff0c\u5219\u53ef\u4ee5\u589e\u52a0\u9ed8\u8ba4MaxUserPort\u8bbe\u7f6e\u5e76\u540c\u65f6\u964d\u4f4eTcpTimedWaitDelay\u8bbe\u7f6e\uff0c\u4ee5\u4fbf\u4e0d\u4f1a\u7528\u5c3d\u5ba2\u6237\u7aef\u533f\u540d\u7aef\u53e3\u3002\u4f8b\u5982\uff0c\u60a8\u53ef\u4ee5\u5c06MaxUserPort\u8bbe\u7f6e\u4e3a20000\uff0c\u5c06TcpTimedWaitDelay\u8bbe\u7f6e\u4e3a30\u3002<br><br><\/p>\n\n\n\n<p class=\"has-medium-font-size\">7. <mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-cyan-blue-color\">\u8f83\u4f4e\u7684\u00a0TcpTimedWaitDelay\u00a0<\/mark>\u8bbe\u7f6e\u610f\u5473\u7740\u5957\u63a5\u5b57\u5728TIME_WAIT\u72b6\u6001\u4e2d<mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-cyan-blue-color\">\u7b49\u5f85\u7684\u65f6\u95f4\u66f4\u77ed<\/mark>\u3002\u8f83\u9ad8\u7684\u00a0MaxUserPort\u00a0\u8bbe\u7f6e\u610f\u5473\u7740\u60a8\u53ef\u4ee5\u8ba9\u66f4\u591a\u7684\u5957\u63a5\u5b57\u5904\u4e8e\u00a0TIME_WAIT\u00a0\u72b6\u6001\u3002<br><br><\/p>\n\n\n\n<p class=\"has-medium-font-size\">8. \u4e3a\u4e86\u4fdd\u8bc1\u5ba2\u6237\u7aef\u7a33\u5b9a\u6027\uff0c\u53ef\u4ee5\u5728\u4e00\u6bb5\u65f6\u95f4\u5185\u91cd\u542f\u5ba2\u6237\u7aef\u3002<br><br><\/p>\n\n\n\n<p class=\"has-medium-font-size\">9. \u8c03\u7528\u672c\u5730\u7aef\u53e3API\uff0cGET\u8bf7\u6c42\u8fd9\u4e2a\u5730\u5740\uff08\u65e0\u8bf7\u6c42\u53c2\u6570\uff09\uff0c\u5c31\u53ef\u4ee5\u91cd\u542f\u5e76\u81ea\u52a8\u767b\u9646<strong><a rel=\"noreferrer noopener\" href=\"https:\/\/www.vmlogin.us\/zh\/\" data-type=\"URL\" data-id=\"https:\/\/www.vmlogin.us\/zh\/\" target=\"_blank\">VMLogin<\/a><\/strong>\u5ba2\u6237\u7aef\u3002<\/p>\n\n\n\n<p class=\"has-medium-font-size\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-cyan-blue-color\">http:\/\/127.0.0.1:35000\/api\/v1\/client\/restart<\/mark><\/p>\n\n\n\n<p class=\"has-medium-font-size\"><br><br><br><br><\/p>\n","protected":false},"excerpt":{"rendered":"<p>1. \u5728\u7535\u8111\u4e0a\u957f\u65f6\u95f4\u8dd1\u81ea\u52a8\u5316\u4efb\u52a1\uff0c\u6709\u53ef\u80fd\u4f1a\u51fa\u73b0\u00a0\u201cFailed to establish a new conn [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[15],"tags":[],"class_list":["post-1001","post","type-post","status-publish","format-standard","hentry","category-api"],"_links":{"self":[{"href":"https:\/\/www.vmlogin.us\/help\/zh\/wp-json\/wp\/v2\/posts\/1001","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.vmlogin.us\/help\/zh\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.vmlogin.us\/help\/zh\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.vmlogin.us\/help\/zh\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.vmlogin.us\/help\/zh\/wp-json\/wp\/v2\/comments?post=1001"}],"version-history":[{"count":7,"href":"https:\/\/www.vmlogin.us\/help\/zh\/wp-json\/wp\/v2\/posts\/1001\/revisions"}],"predecessor-version":[{"id":1914,"href":"https:\/\/www.vmlogin.us\/help\/zh\/wp-json\/wp\/v2\/posts\/1001\/revisions\/1914"}],"wp:attachment":[{"href":"https:\/\/www.vmlogin.us\/help\/zh\/wp-json\/wp\/v2\/media?parent=1001"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.vmlogin.us\/help\/zh\/wp-json\/wp\/v2\/categories?post=1001"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.vmlogin.us\/help\/zh\/wp-json\/wp\/v2\/tags?post=1001"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}