{"id":54121,"date":"2025-02-18T12:52:23","date_gmt":"2025-02-18T04:52:23","guid":{"rendered":"https:\/\/fwq.ai\/blog\/54121\/"},"modified":"2025-02-18T12:52:23","modified_gmt":"2025-02-18T04:52:23","slug":"v2ray-mkcp-%e9%85%8d%e7%bd%ae%e8%af%a6%e8%a7%a3","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/54121\/","title":{"rendered":"v2ray mkcp \u914d\u7f6e\u8be6\u89e3"},"content":{"rendered":"<h2>\u5f15\u8a00<\/h2>\n<p>\u5728\u5f53\u4eca\u7f51\u7edc\u73af\u5883\u4e2d\uff0c<em>v2ray<\/em> \u662f\u4e00\u6b3e\u6781\u5176\u5f3a\u5927\u7684\u5de5\u5177\uff0c\u5b83\u80fd\u591f\u6709\u6548\u5730\u5e2e\u52a9\u7528\u6237\u5b9e\u73b0\u7f51\u7edc\u7684\u79d1\u5b66\u4e0a\u7f51\u3002\u800c\u5728\u4f17\u591a\u7684\u914d\u7f6e\u65b9\u6848\u4e2d\uff0c<em>mkcp<\/em> \u662f\u4e00\u79cd\u7279\u6b8a\u7684\u4f20\u8f93\u534f\u8bae\uff0c\u80fd\u591f\u4f18\u5316\u7528\u6237\u7684\u7f51\u7edc\u4f53\u9a8c\u3002\u672c\u6587\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u5982\u4f55\u8fdb\u884c <em>v2ray mkcp \u914d\u7f6e<\/em>\uff0c\u5305\u62ec\u914d\u7f6e\u6b65\u9aa4\u3001\u6ce8\u610f\u4e8b\u9879\u4ee5\u53ca\u5e38\u89c1\u95ee\u9898\u89e3\u7b54\u3002<\/p>\n<h2>\u4ec0\u4e48\u662fv2ray mkcp\uff1f<\/h2>\n<p><em>mkcp<\/em> \u662f v2ray \u7684\u4e00\u79cd\u4f20\u8f93\u534f\u8bae\uff0c\u5177\u5907\u4ee5\u4e0b\u7279\u70b9\uff1a<\/p>\n<ul>\n<li><strong>\u9ad8\u6548<\/strong>\uff1a\u76f8\u8f83\u4e8e\u5176\u4ed6\u4f20\u8f93\u534f\u8bae\uff0c<em>mkcp<\/em> \u80fd\u591f\u63d0\u9ad8\u6570\u636e\u4f20\u8f93\u7684\u901f\u5ea6\u3002<\/li>\n<li><strong>\u9690\u853d\u6027\u5f3a<\/strong>\uff1a\u91c7\u7528\u4e86UDP\u4f20\u8f93\u65b9\u5f0f\uff0c\u80fd\u591f\u6709\u6548\u907f\u514d\u88ab\u7f51\u7edc\u76d1\u6d4b\u5230\u3002<\/li>\n<li><strong>\u6297\u4e22\u5305<\/strong>\uff1a\u5728\u7f51\u7edc\u4e0d\u7a33\u5b9a\u7684\u60c5\u51b5\u4e0b\uff0c<em>mkcp<\/em> \u7684\u6297\u4e22\u5305\u80fd\u529b\u4f18\u4e8eTCP\u3002<\/li>\n<\/ul>\n<h2>v2ray mkcp\u914d\u7f6e\u6b65\u9aa4<\/h2>\n<p>\u5728\u8fdb\u884c <em>v2ray mkcp \u914d\u7f6e<\/em> \u4e4b\u524d\uff0c\u8bf7\u786e\u4fdd\u4f60\u5df2\u7ecf\u5b89\u88c5\u4e86 v2ray\u3002\u5982\u679c\u8fd8\u672a\u5b89\u88c5\uff0c\u53ef\u4ee5\u53c2\u8003\u76f8\u5173\u7684\u5b89\u88c5\u6559\u7a0b\u3002<\/p>\n<h3>\u7b2c\u4e00\u6b65\uff1a\u5b89\u88c5v2ray<\/h3>\n<ol>\n<li>\u4e0b\u8f7d v2ray \u7684\u6700\u65b0\u7248\u672c\uff0c\u8bbf\u95ee \u3002<\/li>\n<li>\u89e3\u538b\u7f29\u4e0b\u8f7d\u7684\u6587\u4ef6\uff0c\u8fdb\u5165\u89e3\u538b\u540e\u7684\u76ee\u5f55\u3002<\/li>\n<li>\u5728\u7ec8\u7aef\u4e2d\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\u8fdb\u884c\u5b89\u88c5\uff1a<br \/> bash<br \/> sudo cp v2ray \/usr\/local\/bin\/<br \/> sudo cp v2ctl \/usr\/local\/bin\/<\/li>\n<\/ol>\n<h3>\u7b2c\u4e8c\u6b65\uff1a\u521b\u5efa\u914d\u7f6e\u6587\u4ef6<\/h3>\n<ol>\n<li>\n<p>\u521b\u5efa\u4e00\u4e2a\u65b0\u7684\u914d\u7f6e\u6587\u4ef6\uff0c\u4f8b\u5982 <code>config.json<\/code>\uff1a<br \/> bash<br \/> sudo nano \/etc\/v2ray\/config.json<\/p>\n<\/li>\n<li>\n<p>\u5728\u914d\u7f6e\u6587\u4ef6\u4e2d\u8f93\u5165\u4ee5\u4e0b\u57fa\u672c\u7ed3\u6784\uff1a<\/p>\n<p>{<br \/> \u201cinbounds\u201d: [<br \/> {<br \/> \u201cport\u201d: 1080,<br \/> \u201cprotocol\u201d: \u201csocks\u201d,<br \/> \u201csettings\u201d: {<br \/> \u201cauth\u201d: \u201cnoauth\u201d,<br \/> \u201cudp\u201d: true,<br \/> \u201cip\u201d: \u201c127.0.0.1\u201d<br \/> }<br \/> }<br \/> ],<br \/> \u201coutbounds\u201d: [<br \/> {<br \/> \u201cprotocol\u201d: \u201cmkcp\u201d,<br \/> \u201csettings\u201d: {<br \/> \u201cmtu\u201d: 1350,<br \/> \u201ctti\u201d: 20,<br \/> \u201cuplinkCapacity\u201d: 5,<br \/> \u201cdownlinkCapacity\u201d: 5,<br \/> \u201ccongestion\u201d: false,<br \/> \u201creadBufferSize\u201d: 2,<br \/> \u201cwriteBufferSize\u201d: 2,<br \/> \u201cheader\u201d: {<br \/> \u201ctype\u201d: \u201cnone\u201d<br \/> }<br \/> }<br \/> }<br \/> ]<br \/> }<\/p>\n<\/li>\n<li>\n<p>\u4fdd\u5b58\u5e76\u9000\u51fa\u7f16\u8f91\u5668\u3002<\/p>\n<\/li>\n<\/ol>\n<h3>\u7b2c\u4e09\u6b65\uff1a\u8fd0\u884cv2ray<\/h3>\n<p>\u5728\u7ec8\u7aef\u4e2d\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\u6765\u542f\u52a8 v2ray\uff1a<br \/> bash<br \/> v2ray -config \/etc\/v2ray\/config.json<\/p>\n<p>\u786e\u8ba4 v2ray \u6b63\u5e38\u542f\u52a8\u540e\uff0c\u68c0\u67e5\u63a7\u5236\u53f0\u8f93\u51fa\uff0c\u786e\u4fdd\u6ca1\u6709\u62a5\u9519\u4fe1\u606f\u3002<\/p>\n<h3>\u7b2c\u56db\u6b65\uff1a\u6d4b\u8bd5\u8fde\u63a5<\/h3>\n<p>\u4f7f\u7528\u76f8\u5173\u5de5\u5177\uff08\u5982\u6d4f\u89c8\u5668\uff09\u8fdb\u884c\u8bbf\u95ee\uff0c\u68c0\u67e5\u662f\u5426\u80fd\u591f\u987a\u5229\u8fde\u63a5\u5230\u76ee\u6807\u7f51\u7ad9\uff0c\u4ee5\u786e\u8ba4 <em>v2ray mkcp\u914d\u7f6e<\/em> \u662f\u5426\u6210\u529f\u3002<\/p>\n<h2>v2ray mkcp\u914d\u7f6e\u6ce8\u610f\u4e8b\u9879<\/h2>\n<ul>\n<li><strong>\u7aef\u53e3\u8bbe\u7f6e<\/strong>\uff1a\u786e\u4fdd\u6240\u4f7f\u7528\u7684\u7aef\u53e3\u672a\u88ab\u5176\u4ed6\u670d\u52a1\u5360\u7528\u3002<\/li>\n<li><strong>\u9632\u706b\u5899\u8bbe\u7f6e<\/strong>\uff1a\u5982\u679c\u4f7f\u7528\u9632\u706b\u5899\uff0c\u8bf7\u786e\u4fdd\u653e\u884c\u76f8\u5173\u7aef\u53e3\u3002<\/li>\n<li><strong>\u4f18\u5316\u53c2\u6570<\/strong>\uff1a\u6839\u636e\u7f51\u7edc\u73af\u5883\uff0c\u9002\u5f53\u8c03\u6574 <code>mtu<\/code>\u3001<code>tti<\/code> \u548c <code>capacity<\/code> \u7684\u503c\uff0c\u4ee5\u83b7\u5f97\u6700\u4f73\u6027\u80fd\u3002<\/li>\n<\/ul>\n<h2>FAQ<\/h2>\n<h3>v2ray mkcp\u914d\u7f6e\u80fd\u63d0\u5347\u7f51\u901f\u5417\uff1f<\/h3>\n<p>\u662f\u7684\uff0c<em>mkcp<\/em> \u534f\u8bae\u56e0\u5176\u4f18\u5316\u7684\u7279\u6027\uff0c\u80fd\u591f\u5728\u4e00\u5b9a\u7a0b\u5ea6\u4e0a\u63d0\u5347\u7f51\u901f\uff0c\u5c24\u5176\u662f\u5728\u9ad8\u5ef6\u8fdf\u7684\u7f51\u7edc\u73af\u5883\u4e2d\uff0c\u8868\u73b0\u5f97\u5c24\u4e3a\u7a81\u51fa\u3002<\/p>\n<h3>\u5982\u4f55\u5224\u65adv2ray mkcp\u914d\u7f6e\u662f\u5426\u6210\u529f\uff1f<\/h3>\n<p>\u53ef\u4ee5\u901a\u8fc7\u8bbf\u95ee\u7279\u5b9a\u7684\u7f51\u7ad9\uff0c\u67e5\u770b\u662f\u5426\u80fd\u591f\u987a\u5229\u6253\u5f00\uff1b\u6b64\u5916\uff0c\u67e5\u770b v2ray \u7684\u65e5\u5fd7\u4fe1\u606f\uff0c\u786e\u8ba4\u662f\u5426\u6709\u9519\u8bef\u4fe1\u606f\u3002<\/p>\n<h3>v2ray mkcp\u914d\u7f6e\u7684\u6700\u4f73\u53c2\u6570\u662f\u4ec0\u4e48\uff1f<\/h3>\n<p>\u6700\u4f73\u53c2\u6570\u53d6\u51b3\u4e8e\u5b9e\u9645\u7684\u7f51\u7edc\u73af\u5883\uff0c\u5efa\u8bae\u901a\u8fc7\u4e0d\u65ad\u6d4b\u8bd5\u8c03\u6574 <code>mtu<\/code>\u3001<code>tti<\/code> \u548c <code>capacity<\/code> \u7684\u503c\uff0c\u5bfb\u627e\u9002\u5408\u81ea\u5df1\u7684\u6700\u4f73\u8bbe\u7f6e\u3002<\/p>\n<h3>v2ray mkcp\u652f\u6301\u54ea\u4e9b\u5e73\u53f0\uff1f<\/h3>\n<p><em>mkcp<\/em> \u4f5c\u4e3a v2ray \u7684\u4e00\u90e8\u5206\uff0c\u652f\u6301 Windows\u3001Linux\u3001macOS \u53ca\u5176\u4ed6\u4e3b\u6d41\u5e73\u53f0\u3002<\/p>\n<h2>\u603b\u7ed3<\/h2>\n<p>\u5728\u73b0\u4ee3\u7f51\u7edc\u4e2d\uff0c<em>v2ray mkcp\u914d\u7f6e<\/em> \u4e3a\u7528\u6237\u63d0\u4f9b\u4e86\u4e00\u4e2a\u5b89\u5168\u4e14\u9ad8\u6548\u7684\u4e0a\u7f51\u89e3\u51b3\u65b9\u6848\u3002\u901a\u8fc7\u672c\u6587\u7684\u8be6\u7ec6\u6b65\u9aa4\u548c\u6ce8\u610f\u4e8b\u9879\uff0c\u5e0c\u671b\u80fd\u5e2e\u52a9\u66f4\u591a\u7528\u6237\u987a\u5229\u5b8c\u6210\u914d\u7f6e\u5e76\u4f18\u5316\u4ed6\u4eec\u7684\u7f51\u7edc\u4f53\u9a8c\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5f15\u8a00 \u5728\u5f53\u4eca\u7f51\u7edc\u73af\u5883\u4e2d\uff0cv2ray \u662f\u4e00\u6b3e\u6781\u5176\u5f3a\u5927\u7684\u5de5\u5177\uff0c\u5b83\u80fd\u591f\u6709\u6548\u5730\u5e2e\u52a9\u7528\u6237\u5b9e\u73b0\u7f51\u7edc\u7684\u79d1\u5b66\u4e0a\u7f51\u3002\u800c\u5728\u4f17\u591a\u7684\u914d\u7f6e\u65b9\u6848\u4e2d\uff0cmkcp \u662f\u4e00\u79cd\u7279\u6b8a\u7684\u4f20\u8f93\u534f\u8bae\uff0c\u80fd\u591f\u4f18\u5316\u7528\u6237\u7684\u7f51\u7edc\u4f53\u9a8c\u3002\u672c\u6587\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u5982\u4f55\u8fdb\u884c v2ray mkcp \u914d\u7f6e\uff0c\u5305\u62ec\u914d\u7f6e\u6b65\u9aa4\u3001\u6ce8\u610f\u4e8b\u9879\u4ee5\u53ca\u5e38\u89c1\u95ee\u9898\u89e3\u7b54\u3002 \u4ec0\u4e48\u662fv2ray mkcp\uff1f mkcp \u662f v2ray \u7684\u4e00\u79cd\u4f20\u8f93\u534f\u8bae\uff0c\u5177\u5907\u4ee5\u4e0b\u7279\u70b9\uff1a \u9ad8\u6548\uff1a\u76f8\u8f83\u4e8e\u5176\u4ed6\u4f20\u8f93\u534f\u8bae\uff0cmkcp \u80fd\u591f\u63d0\u9ad8\u6570\u636e\u4f20\u8f93\u7684\u901f\u5ea6\u3002 \u9690\u853d\u6027\u5f3a\uff1a\u91c7\u7528\u4e86UDP\u4f20\u8f93\u65b9\u5f0f\uff0c\u80fd\u591f\u6709\u6548\u907f\u514d\u88ab\u7f51\u7edc\u76d1\u6d4b\u5230\u3002 \u6297\u4e22\u5305\uff1a\u5728\u7f51\u7edc\u4e0d\u7a33\u5b9a\u7684\u60c5\u51b5\u4e0b\uff0cmkcp \u7684\u6297\u4e22\u5305\u80fd\u529b\u4f18\u4e8eTCP\u3002 v2ray mkcp\u914d\u7f6e\u6b65\u9aa4 \u5728\u8fdb\u884c v2ray mkcp \u914d\u7f6e \u4e4b\u524d\uff0c\u8bf7\u786e\u4fdd\u4f60\u5df2\u7ecf\u5b89\u88c5\u4e86 v2ray\u3002\u5982\u679c\u8fd8\u672a\u5b89\u88c5\uff0c\u53ef\u4ee5\u53c2\u8003\u76f8\u5173\u7684\u5b89\u88c5\u6559\u7a0b\u3002 \u7b2c\u4e00\u6b65\uff1a\u5b89\u88c5v2ray \u4e0b\u8f7d v2ray \u7684\u6700\u65b0\u7248\u672c\uff0c\u8bbf\u95ee \u3002 \u89e3\u538b\u7f29\u4e0b\u8f7d\u7684\u6587\u4ef6\uff0c\u8fdb\u5165\u89e3\u538b\u540e\u7684\u76ee\u5f55\u3002 \u5728\u7ec8\u7aef\u4e2d\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\u8fdb\u884c\u5b89\u88c5\uff1a bash sudo cp v2ray \/usr\/local\/bin\/ sudo cp v2ctl \/usr\/local\/bin\/ \u7b2c\u4e8c\u6b65\uff1a\u521b\u5efa\u914d\u7f6e\u6587\u4ef6 \u521b\u5efa\u4e00\u4e2a\u65b0\u7684\u914d\u7f6e\u6587\u4ef6\uff0c\u4f8b\u5982 config.json\uff1a bash sudo nano \/etc\/v2ray\/config.json \u5728\u914d\u7f6e\u6587\u4ef6\u4e2d\u8f93\u5165\u4ee5\u4e0b\u57fa\u672c\u7ed3\u6784\uff1a { \u201cinbounds\u201d: [ { \u201cport\u201d: [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[21],"tags":[],"class_list":["post-54121","post","type-post","status-publish","format-standard","hentry","category-vpn"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/54121","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/comments?post=54121"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/54121\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=54121"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=54121"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=54121"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}