{"id":439,"date":"2025-10-28T08:14:18","date_gmt":"2025-10-28T00:14:18","guid":{"rendered":"https:\/\/www.idcyz.com\/blog\/?p=439"},"modified":"2025-10-28T08:14:18","modified_gmt":"2025-10-28T00:14:18","slug":"v2ray-%e8%84%9a%e6%9c%ac%e4%bd%bf%e7%94%a8%e4%b8%8e%e5%ae%89%e8%a3%85%e6%8c%87%e5%8d%97","status":"publish","type":"post","link":"https:\/\/www.idcyz.com\/blog\/439.html","title":{"rendered":"V2Ray \u811a\u672c\u4f7f\u7528\u4e0e\u5b89\u88c5\u6307\u5357"},"content":{"rendered":"<p><h2>V2Ray \u811a\u672c\u7b80\u4ecb<\/h2>\n<\/p>\n<p style=\"text-align:center\"><img decoding=\"async\" src=\"https:\/\/www.idcyz.com\/blog\/wp-content\/uploads\/2025\/07\/AVQ404.jpg\" alt=\"V2Ray \u811a\u672c\u4f7f\u7528\u4e0e\u5b89\u88c5\u6307\u5357\" title=\"V2Ray \u811a\u672c\u4f7f\u7528\u4e0e\u5b89\u88c5\u6307\u5357\"><\/p>\n<p>V2Ray \u662f\u4e00\u4e2a\u7075\u6d3b\u7684\u7f51\u7edc\u4ee3\u7406\u5de5\u5177\uff0c\u53ef\u4ee5\u4f5c\u4e3a\u5404\u79cd\u7f51\u7edc\u901a\u4fe1\u534f\u8bae\u7684\u5b9e\u73b0\uff0c\u4e3b\u8981\u7528\u4e8e\u79d1\u5b66\u4e0a\u7f51\u3002\u5b83\u63d0\u4f9b\u4e86\u591a\u79cd\u529f\u80fd\uff0c\u5982\u6d41\u91cf\u6df7\u6dc6\u3001\u534f\u8bae\u53d8\u66f4\u7b49\uff0c\u80fd\u591f\u6709\u6548\u5e94\u5bf9\u7f51\u7edc\u5c01\u9501\u3002\u672c\u6587\u5c06\u5f15\u5bfc\u8bfb\u8005\u5982\u4f55\u4f7f\u7528\u811a\u672c\u5b89\u88c5\u548c\u914d\u7f6e V2Ray\uff0c\u786e\u4fdd\u7528\u6237\u80fd\u591f\u5728\u81ea\u5df1\u7684\u670d\u52a1\u5668\u4e0a\u5feb\u901f\u642d\u5efa V2Ray \u670d\u52a1\u3002<\/p>\n<p><h2>V2Ray \u5b89\u88c5\u811a\u672c\u7684\u9700\u6c42<\/h2>\n<\/p>\n<p>\u5728\u5f00\u59cb\u4e4b\u524d\uff0c\u8bf7\u786e\u5b9a\u4f60\u7684\u7cfb\u7edf\u6ee1\u8db3\u4ee5\u4e0b\u8981\u6c42\uff1a<\/p>\n<ul>\n<li>\u64cd\u4f5c\u7cfb\u7edf\uff1a\u652f\u6301 Debian\/Ubuntu \u6216 CentOS \u7cfb\u7edf\u7684\u670d\u52a1\u5668<\/li>\n<li>\u7f51\u7edc\u73af\u5883\uff1a\u670d\u52a1\u5668\u80fd\u591f\u8bbf\u95ee\u5916\u7f51<\/li>\n<li>\u57fa\u672c\u6743\u9650\uff1a\u9700\u8981\u6709\u7ba1\u7406\u5458\u6743\u9650\uff08sudo\uff09<\/li>\n<\/ul>\n<p><h2>\u5b89\u88c5\u6b65\u9aa4<\/h2>\n<\/p>\n<p><h3>\u6b65\u9aa4 1\uff1a\u66f4\u65b0\u7cfb\u7edf<\/h3>\n<\/p>\n<p>\u5728\u5f00\u59cb\u5b89\u88c5 V2Ray \u4e4b\u524d\uff0c\u9996\u5148\u66f4\u65b0\u64cd\u4f5c\u7cfb\u7edf\u7684\u53ef\u7528\u8f6f\u4ef6\u5305\uff1a<\/p>\n<p><pre><code>sudo apt update && sudo apt upgrade -y<\/code><\/pre>\n<\/p>\n<p><h3>\u6b65\u9aa4 2\uff1a\u4e0b\u8f7d V2Ray \u5b89\u88c5\u811a\u672c<\/h3>\n<\/p>\n<p>\u63a5\u4e0b\u6765\uff0c\u6211\u4eec\u5c06\u4e0b\u8f7d\u5b98\u65b9\u7684 V2Ray \u5b89\u88c5\u811a\u672c\u3002\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u83b7\u53d6\u811a\u672c\uff1a<\/p>\n<p><pre><code>curl -O https:\/\/raw.githubusercontent.com\/v2ray\/v2ray-core\/master\/release\/install-release.sh<\/code><\/pre>\n<\/p>\n<p><h3>\u6b65\u9aa4 3\uff1a\u8d4b\u4e88\u6267\u884c\u6743\u9650<\/h3>\n<\/p>\n<p>\u4e0b\u8f7d\u5b8c\u6210\u540e\uff0c\u9700\u8981\u7ed9\u811a\u672c\u8d4b\u4e88\u6267\u884c\u6743\u9650\uff0c\u4ee5\u4fbf\u53ef\u4ee5\u8fd0\u884c\u5b83\uff1a<\/p>\n<p><pre><code>chmod +x install-release.sh<\/code><\/pre>\n<\/p>\n<p><h3>\u6b65\u9aa4 4\uff1a\u8fd0\u884c\u5b89\u88c5\u811a\u672c<\/h3>\n<\/p>\n<p>\u73b0\u5728\u53ef\u4ee5\u8fd0\u884c\u5b89\u88c5\u811a\u672c\u6765\u5b89\u88c5 V2Ray\uff1a<\/p>\n<p><pre><code>sudo .\/install-release.sh<\/code><\/pre>\n<\/p>\n<p>\u8be5\u811a\u672c\u4f1a\u81ea\u52a8\u4e0b\u8f7d\u5e76\u5b89\u88c5 V2Ray \u7684\u6700\u65b0\u7248\u672c\u3002<\/p>\n<p><h3>\u6b65\u9aa4 5\uff1a\u786e\u8ba4\u5b89\u88c5\u7ed3\u679c<\/h3>\n<\/p>\n<p>\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u547d\u4ee4\u68c0\u67e5 V2Ray \u662f\u5426\u6b63\u5e38\u5b89\u88c5\uff1a<\/p>\n<p><pre><code>v2ray version<\/code><\/pre>\n<\/p>\n<p>\u5982\u679c\u663e\u793a\u4e86 V2Ray \u7684\u7248\u672c\u4fe1\u606f\uff0c\u8bf4\u660e\u5b89\u88c5\u6210\u529f\u3002<\/p>\n<p><h2>V2Ray \u914d\u7f6e\u6587\u4ef6<\/h2>\n<\/p>\n<p>V2Ray \u7684\u914d\u7f6e\u6587\u4ef6\u4f4d\u4e8e `\/etc\/v2ray\/config.json`\uff0c\u8fd9\u662f V2Ray \u7684\u6838\u5fc3\u914d\u7f6e\u6587\u4ef6\u3002\u5728\u6b64\u6587\u4ef6\u4e2d\uff0c\u4f60\u9700\u8981\u914d\u7f6e\u5165\u7ad9\u548c\u51fa\u7ad9\u4ee3\u7406\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u7b80\u5355\u7684\u914d\u7f6e\u793a\u4f8b\uff1a<\/p>\n<p><pre><code>{<\/p>\r\n<p>  \"inbounds\": [{<\/p>\r\n<p>    \"port\": 1080,<\/p>\r\n<p>    \"protocol\": \"socks\",<\/p>\r\n<p>    \"settings\": {<\/p>\r\n<p>      \"auth\": \"noauth\",<\/p>\r\n<p>      \"udp\": true<\/p>\r\n<p>    }<\/p>\r\n<p>  }],<\/p>\r\n<p>  \"outbounds\": [{<\/p>\r\n<p>    \"protocol\": \"vmess\",<\/p>\r\n<p>    \"settings\": {<\/p>\r\n<p>      \"vnext\": [{<\/p>\r\n<p>        \"address\": \"example.com\",<\/p>\r\n<p>        \"port\": 10086,<\/p>\r\n<p>        \"users\": [{<\/p>\r\n<p>          \"id\": \"your-uuid-here\",<\/p>\r\n<p>          \"alterId\": 64<\/p>\r\n<p>        }]<\/p>\r\n<p>      }]<\/p>\r\n<p>    }<\/p>\r\n<p>  }]<\/p>\r\n<p>}<\/p>\r\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u91cd\u8981\u53c2\u6570\u8bf4\u660e<\/h3>\n<\/p>\n<ul>\n<li><strong>inbounds<\/strong>\uff1a\u5165\u7ad9\u8bbe\u7f6e\uff0c\u5b9a\u4e49\u4e86 V2Ray \u5982\u4f55\u63a5\u6536\u8bf7\u6c42\u3002<\/li>\n<li><strong>outbounds<\/strong>\uff1a\u51fa\u7ad9\u8bbe\u7f6e\uff0c\u5b9a\u4e49\u4e86 V2Ray \u5c06\u8bf7\u6c42\u53d1\u9001\u5230\u54ea\u91cc\u3002<\/li>\n<li><strong>vnext<\/strong>\uff1a\u914d\u7f6e\u60a8\u7684\u4ee3\u7406\u670d\u52a1\u5668\u5730\u5740\uff0c\u786e\u4fdd\u66ff\u6362\u4e3a\u60a8\u7684\u670d\u52a1\u5668\u4fe1\u606f\u3002<\/li>\n<li><strong>id<\/strong>\uff1a\u7528\u6237\u552f\u4e00\u6807\u8bc6\u7b26\uff0c\u4e00\u822c\u4f7f\u7528 UUID \u683c\u5f0f\u751f\u6210\u3002<\/li>\n<li><strong>port<\/strong>\uff1a\u5b9a\u4e49 V2Ray \u76d1\u542c\u7684\u7aef\u53e3\uff0c\u9700\u5927\u4e8e1024\u3002<\/li>\n<\/ul>\n<p><h2>\u751f\u6210 UUID<\/h2>\n<\/p>\n<p>UUID \u662f V2Ray \u4e2d\u7528\u6237\u8eab\u4efd\u6807\u8bc6\u7684\u91cd\u8981\u7ec4\u6210\u90e8\u5206\uff0c\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u547d\u4ee4\u751f\u6210\uff1a<\/p>\n<p><pre><code>cat \/proc\/sys\/kernel\/random\/uuid<\/code><\/pre>\n<\/p>\n<p>\u6b64\u547d\u4ee4\u5c06\u8f93\u51fa\u4e00\u4e2a\u65b0\u7684 UUID\uff0c\u7528\u4e8e\u914d\u7f6e V2Ray\u3002<\/p>\n<p><h2>\u542f\u52a8 V2Ray \u670d\u52a1<\/h2>\n<\/p>\n<p>\u5728\u5b8c\u6210\u914d\u7f6e\u6587\u4ef6\u7684\u4fee\u6539\u540e\uff0c\u53ef\u4ee5\u542f\u52a8 V2Ray \u670d\u52a1\u4ee5\u4f7f\u66f4\u6539\u751f\u6548\uff1a<\/p>\n<p><pre><code>sudo systemctl start v2ray<\/code><\/pre>\n<\/p>\n<p>\u5982\u9700\u4f7f V2Ray \u5728\u7cfb\u7edf\u542f\u52a8\u65f6\u81ea\u52a8\u542f\u52a8\uff0c\u8bf7\u6267\u884c\uff1a<\/p>\n<p><pre><code>sudo systemctl enable v2ray<\/code><\/pre>\n<\/p>\n<p><h2>\u68c0\u67e5 V2Ray \u72b6\u6001<\/h2>\n<\/p>\n<p>\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u6765\u68c0\u67e5 V2Ray \u670d\u52a1\u7684\u72b6\u6001\uff1a<\/p>\n<p><pre><code>sudo systemctl status v2ray<\/code><\/pre>\n<\/p>\n<p>\u5982\u679c\u4e00\u5207\u6b63\u5e38\uff0c\u60a8\u5e94\u8be5\u80fd\u591f\u770b\u5230 V2Ray \u6b63\u5728\u8fd0\u884c\u3002<\/p>\n<p><h2>\u6ce8\u610f\u4e8b\u9879<\/h2>\n<\/p>\n<ul>\n<li>\u786e\u4fdd\u670d\u52a1\u5668\u7684\u9632\u706b\u5899\u5141\u8bb8 V2Ray \u7684\u76d1\u542c\u7aef\u53e3\uff08\u5982 1080 \u548c 10086\uff09\uff0c\u9632\u6b62\u6d41\u91cf\u88ab\u62e6\u622a\u3002<\/li>\n<li>\u4f7f\u7528\u5f3a\u5bc6\u7801\u548c\u5408\u7406\u7684\u5b89\u5168\u8bbe\u7f6e\u6765\u4fdd\u62a4\u60a8\u7684 V2Ray \u914d\u7f6e\uff0c\u9632\u6b62\u672a\u7ecf\u6388\u6743\u8bbf\u95ee\u3002<\/li>\n<li>\u5b9a\u671f\u66f4\u65b0 V2Ray \u4ee5\u83b7\u53d6\u6700\u65b0\u7684\u529f\u80fd\u548c\u5b89\u5168\u4fee\u590d\uff0c\u53ef\u4ee5\u901a\u8fc7\u91cd\u65b0\u8fd0\u884c\u5b89\u88c5\u811a\u672c\u6765\u5b8c\u6210\u3002<\/li>\n<li>\u68c0\u67e5\u914d\u7f6e\u6587\u4ef6\u4e2d\u7684 JSON \u683c\u5f0f\u662f\u5426\u6b63\u786e\uff0c\u4ee5\u514d\u5bfc\u81f4 V2Ray \u542f\u52a8\u5931\u8d25\u3002<\/li>\n<\/ul>\n<p><h2>\u5b9e\u7528\u6280\u5de7<\/h2>\n<\/p>\n<ul>\n<li>\u5229\u7528\u57df\u540d\u89e3\u6790\u670d\u52a1\uff0c\u5c06\u4ee3\u7406\u670d\u52a1\u5668\u7684 IP \u5730\u5740\u6307\u5411\u4e00\u4e2a\u57df\u540d\uff0c\u4fbf\u4e8e\u5728\u4f7f\u7528\u65f6\u8fdb\u884c\u7ef4\u62a4\u3002<\/li>\n<li>\u5982\u679c\u60a8\u9047\u5230\u7f51\u7edc\u95ee\u9898\uff0c\u53ef\u4ee5\u5c1d\u8bd5\u66f4\u6539 V2Ray \u7684\u534f\u8bae\u548c\u52a0\u5bc6\u65b9\u5f0f\uff0c\u4ee5\u786e\u4fdd\u7a33\u5b9a\u6027\u3002<\/li>\n<li>\u5b9a\u671f\u5907\u4efd\u60a8\u7684 V2Ray \u914d\u7f6e\u6587\u4ef6\uff0c\u4ee5\u4fbf\u5728\u9700\u8981\u65f6\u80fd\u591f\u8fc5\u901f\u6062\u590d\u3002<\/li>\n<li>\u5728\u8c03\u8bd5\u65f6\uff0c\u901a\u8fc7\u67e5\u770b V2Ray \u7684\u65e5\u5fd7\u6587\u4ef6\uff08\u4f4d\u4e8e `\/var\/log\/v2ray\/access.log`\uff09\u6765\u83b7\u53d6\u8be6\u7ec6\u7684\u8bf7\u6c42\u5904\u7406\u4fe1\u606f\u3002<\/li>\n<\/ul>\n<p><h2>\u603b\u7ed3<\/h2>\n<\/p>\n<p>\u901a\u8fc7\u4e0a\u8ff0\u6b65\u9aa4\uff0c\u60a8\u5e94\u8be5\u80fd\u591f\u6210\u529f\u5b89\u88c5\u548c\u914d\u7f6e V2Ray \u4ee3\u7406\u670d\u52a1\u3002\u786e\u4fdd\u9075\u5faa\u5b89\u5168\u6700\u4f73\u5b9e\u8df5\uff0c\u5e76\u4e3a\u4f7f\u7528\u63d0\u4f9b\u7f8e\u597d\u7684\u4f53\u9a8c\u3002\u5728\u5b9e\u8df5\u4e2d\uff0c\u60a8\u53ef\u4ee5\u6839\u636e\u4e2a\u4eba\u9700\u8981\u5fae\u8c03\u914d\u7f6e\uff0c\u4ee5\u8fbe\u5230\u6700\u4f73\u7684\u7f51\u7edc\u73af\u5883\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>V2Ray \u811a\u672c\u7b80\u4ecb V2Ray \u662f\u4e00\u4e2a\u7075\u6d3b\u7684\u7f51\u7edc\u4ee3\u7406\u5de5\u5177\uff0c\u53ef\u4ee5\u4f5c\u4e3a\u5404\u79cd\u7f51\u7edc\u901a\u4fe1\u534f\u8bae\u7684\u5b9e\u73b0\uff0c\u4e3b\u8981\u7528\u4e8e\u79d1\u5b66\u4e0a\u7f51\u3002\u5b83\u63d0\u4f9b\u4e86\u591a\u79cd\u529f\u80fd\uff0c\u5982\u6d41\u91cf\u6df7\u6dc6\u3001\u534f\u8bae\u53d8\u66f4\u7b49\uff0c\u80fd\u591f\u6709\u6548\u5e94\u5bf9\u7f51\u7edc\u5c01\u9501\u3002\u672c\u6587\u5c06\u5f15\u5bfc\u8bfb\u8005\u5982\u4f55\u4f7f\u7528\u811a\u672c\u5b89\u88c5\u548c\u914d\u7f6e V2Ray\uff0c\u786e\u4fdd\u7528\u6237\u80fd\u591f\u5728\u81ea&#8230;<\/p>\n","protected":false},"author":1,"featured_media":440,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[240,239,96],"topic":[],"class_list":["post-439","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-jiushu","tag-sudo","tag-vray","tag-96"],"_links":{"self":[{"href":"https:\/\/www.idcyz.com\/blog\/wp-json\/wp\/v2\/posts\/439","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.idcyz.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.idcyz.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.idcyz.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.idcyz.com\/blog\/wp-json\/wp\/v2\/comments?post=439"}],"version-history":[{"count":1,"href":"https:\/\/www.idcyz.com\/blog\/wp-json\/wp\/v2\/posts\/439\/revisions"}],"predecessor-version":[{"id":442,"href":"https:\/\/www.idcyz.com\/blog\/wp-json\/wp\/v2\/posts\/439\/revisions\/442"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.idcyz.com\/blog\/wp-json\/wp\/v2\/media\/440"}],"wp:attachment":[{"href":"https:\/\/www.idcyz.com\/blog\/wp-json\/wp\/v2\/media?parent=439"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.idcyz.com\/blog\/wp-json\/wp\/v2\/categories?post=439"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.idcyz.com\/blog\/wp-json\/wp\/v2\/tags?post=439"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.idcyz.com\/blog\/wp-json\/wp\/v2\/topic?post=439"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}