{"id":3621,"date":"2022-07-14T10:39:12","date_gmt":"2022-07-14T02:39:12","guid":{"rendered":"https:\/\/www.vmlogin.cc\/blog\/?p=3621"},"modified":"2022-10-13T15:02:03","modified_gmt":"2022-10-13T07:02:03","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%9a%84%e7%a8%b3%e5%ae%9a%e6%80%a7","status":"publish","type":"post","link":"https:\/\/www.vmlogin.cc\/blog\/3621.html","title":{"rendered":"VMLogin\u81ea\u52a8\u5316\u7684\u7f51\u7edc\u4f18\u5316\uff0c\u63d0\u5347Window\u957f\u65f6\u95f4\u81ea\u52a8\u5316\u7a33\u5b9a\u6027\u7684\u65b9\u6cd5"},"content":{"rendered":"\n<p>\u5728\u7535\u8111\u4e0a\u957f\u65f6\u95f4\u8dd1\u81ea\u52a8\u5316\u4efb\u52a1\uff0c\u6709\u53ef\u80fd\u4f1a\u51fa\u73b0\uff1aFailed to establish a new connection: [WinError 10048] \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<\/p>\n\n\n\n<p>\u53ef\u4ee5\u4fee\u6539\u6ce8\u518c\u8868\u9879\uff0c\u8981\u63d0\u5347\u7535\u8111\u7684\u7f51\u7edc\u6027\u80fd\u3002<\/p>\n\n\n\n<p>\u4f7f\u7528 regedit \u547d\u4ee4\u8bbf\u95ee HKEY_LOCAL_MACHINE\/SYSTEM\/CurrentControlSet\/Services\/TCPIP\/Parameters \u6ce8\u518c\u8868\u5b50\u952e\u5e76\u521b\u5efa\u540d\u4e3a TcpTimedWaitDelay \u7684\u65b0 REG_DWORD \u503c\u3002 \u5c06\u6b64\u503c\u8bbe\u7f6e\u4e3a\u5341\u8fdb\u5236 30\uff0c\u5176\u4e3a\u5341\u516d\u8fdb\u5236 0x0000001e\u3002\u8be5\u503c\u5c06\u7b49\u5f85\u65f6\u95f4\u8bbe\u7f6e\u4e3a 30 \u79d2\u3002<\/p>\n\n\n\n<p>\u4f7f\u7528 regedit \u547d\u4ee4\u8bbf\u95ee HKEY_LOCAL_MACHINE\/SYSTEM\/CurrentControlSet\/Services\/TCPIP\/Parameters \u6ce8\u518c\u8868\u5b50\u952e\u5e76\u521b\u5efa\u540d\u4e3a MaxUserPort \u7684\u65b0 REG_DWORD \u503c\u3002 \u505c\u6b62\u5e76\u91cd\u65b0\u542f\u52a8\u7cfb\u7edf\u3002 \u7f3a\u7701\u503c\uff1a\u65e0 \u5efa\u8bae\u503c\uff1a\u81f3\u5c11\u5341\u8fdb\u5236 32768\u3002<\/p>\n\n\n\n<p>\u4e0d\u77e5\u9053\u600e\u4e48\u6253\u5f00\u6ce8\u518c\u8868\u7684\u7528\u6237\uff0c\u53ef\u4ee5\u76f4\u63a5\u65b0\u5efa\u4e00\u4e2aTXT\u6587\u6863\uff0c\u628a\u4e0b\u9762\u5185\u5bb9\u5199\u5165\u5176\u4e2d\u4fdd\u5b58\uff0c\u518d\u6539\u8fd9\u4e2a\u65b0\u5efa\u7684\u6587\u4ef6\u540d\u4e3aTcpip.reg&nbsp;\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>\u5f53\u5728\u8c03\u7528\u63a5\u53e3\u65f6\uff0c\u4f7f\u7528\u547d\u4ee4\u884c\u5de5\u5177netstat -n \u53d1\u73b0\u6709\u5c06\u8fd1 4000 \u4e2a\u5230\u8fd0\u884c\u63a5\u53e3\u7684\u76ee\u6807\u8ba1\u7b97\u673a\u7684 IP \u5730\u5740\u7684\u8fde\u63a5\u5904\u4e8e TIME_WAIT \u72b6\u6001\uff0c\u5219\u53ef\u4ee5\u589e\u52a0\u9ed8\u8ba4 MaxUserPort \u8bbe\u7f6e\u5e76\u540c\u65f6\u964d\u4f4e TcpTimedWaitDelay \u8bbe\u7f6e\uff0c\u4ee5\u4fbf\u4e0d\u4f1a\u7528\u5c3d\u5ba2\u6237\u7aef\u533f\u540d\u7aef\u53e3\u3002\u4f8b\u5982\uff0c\u60a8\u53ef\u4ee5\u5c06 MaxUserPort \u8bbe\u7f6e\u4e3a 20000\uff0c\u5c06 TcpTimedWaitDelay \u8bbe\u7f6e\u4e3a 30\u3002\u8f83\u4f4e\u7684 TcpTimedWaitDelay \u8bbe\u7f6e\u610f\u5473\u7740\u5957\u63a5\u5b57\u5728 TIME_WAIT \u72b6\u6001\u4e2d\u7b49\u5f85\u7684\u65f6\u95f4\u66f4\u77ed\u3002\u8f83\u9ad8\u7684 MaxUserPort \u8bbe\u7f6e\u610f\u5473\u7740\u60a8\u53ef\u4ee5\u8ba9\u66f4\u591a\u7684\u5957\u63a5\u5b57\u5904\u4e8e TIME_WAIT \u72b6\u6001\u3002<\/p>\n\n\n\n<p>\u4e3a\u4e86\u4fdd\u8bc1\u5ba2\u6237\u7aef\u7a33\u5b9a\u6027\uff0c\u53ef\u4ee5\u5728\u4e00\u6bb5\u65f6\u95f4\u5185\u91cd\u542f\u5ba2\u6237\u7aef\uff1a<\/p>\n\n\n\n<p>\u8c03\u7528\u672c\u5730\u7aef\u53e3API\uff0cGET\u8bf7\u6c42\u8fd9\u4e2a\u5730\u5740\uff0c\u5c31\u53ef\u4ee5\u91cd\u542f\u5e76\u81ea\u52a8\u767b\u9646<a rel=\"noreferrer noopener\" href=\"https:\/\/www.vmlogin.cc\/\" target=\"_blank\">VMLogin<\/a>\u5ba2\u6237\u7aef<\/p>\n\n\n\n<p>http:\/\/127.0.0.1:35000\/api\/v1\/client\/restart&nbsp; \u91cd\u542f\u5ba2\u6237\u7aef\uff08\u65e0\u8bf7\u6c42\u53c2\u6570\uff09<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5728\u7535\u8111\u4e0a\u957f\u65f6\u95f4\u8dd1\u81ea\u52a8\u5316\u4efb\u52a1\uff0c\u6709\u53ef\u80fd\u4f1a\u51fa\u73b0\uff1aFailed to establish a new connecti&hellip; <a href=\"https:\/\/www.vmlogin.cc\/blog\/3621.html\" class=\"more-link\">\u7ee7\u7eed\u9605\u8bfb <span class=\"screen-reader-text\">VMLogin\u81ea\u52a8\u5316\u7684\u7f51\u7edc\u4f18\u5316\uff0c\u63d0\u5347Window\u957f\u65f6\u95f4\u81ea\u52a8\u5316\u7a33\u5b9a\u6027\u7684\u65b9\u6cd5<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-3621","post","type-post","status-publish","format-standard","hentry","category-vmlogin-jiaocheng"],"_links":{"self":[{"href":"https:\/\/www.vmlogin.cc\/blog\/wp-json\/wp\/v2\/posts\/3621","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.vmlogin.cc\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.vmlogin.cc\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.vmlogin.cc\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.vmlogin.cc\/blog\/wp-json\/wp\/v2\/comments?post=3621"}],"version-history":[{"count":3,"href":"https:\/\/www.vmlogin.cc\/blog\/wp-json\/wp\/v2\/posts\/3621\/revisions"}],"predecessor-version":[{"id":4144,"href":"https:\/\/www.vmlogin.cc\/blog\/wp-json\/wp\/v2\/posts\/3621\/revisions\/4144"}],"wp:attachment":[{"href":"https:\/\/www.vmlogin.cc\/blog\/wp-json\/wp\/v2\/media?parent=3621"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.vmlogin.cc\/blog\/wp-json\/wp\/v2\/categories?post=3621"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.vmlogin.cc\/blog\/wp-json\/wp\/v2\/tags?post=3621"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}