{"id":3022,"date":"2022-10-22T22:27:54","date_gmt":"2022-10-22T14:27:54","guid":{"rendered":"http:\/\/blog.zengqq.com.cn\/?p=3022"},"modified":"2022-10-23T14:07:54","modified_gmt":"2022-10-23T06:07:54","slug":"%e6%9e%b6%e8%ae%be%e8%87%aa%e5%b7%b1%e7%9a%84v2ray","status":"publish","type":"post","link":"https:\/\/blog.zengqq.com.cn\/?p=3022","title":{"rendered":"\u67b6\u8bbe\u81ea\u5df1\u7684V2ray"},"content":{"rendered":"\n<p>\u5728Mac\u7684\u670d\u52a1\u5668\u91cc\u9762\u8dd1\u4e86V2ray\uff0c\u54c8\u54c8\u54c8\u54c8\uff01<\/p>\n\n\n\n<p>\u4e3a\u4ec0\u4e48\u8981\u67b6\u8bbeV2ray\u5462\uff1f\u56e0\u4e3a\u5df2\u7ecf\u6709\u4e86Shadowsocks\u7684\u670d\u52a1\uff0c\u4f46\u662f\u65b0\u4e00\u4ee3\u7684\u7c7b\u4f3c\u8f6f\u7532\u8fd8\u6ca1\u6709\u73a9\u8fc7\u6240\u4ee5\u8bd5\u8bd5\u3002<\/p>\n\n\n\n<p>\u9700\u8981\u51c6\u5907\u4ec0\u4e48\uff1f<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>\u4e00\u4e2a\u670d\u52a1\u5668\uff0clinux\u6700\u597d<ul><li>Ubuntu 20.20<\/li><\/ul><\/li><li>\u4e00\u53cc\u52e4\u52b3\u7684\u624b<\/li><li>\u4e00\u7bc7\u73b0\u6210\u7684\u6307\u5bfc\u6587\u7ae0<ul><li>https:\/\/thetowerinfo.com\/zh\/v2ray-tutorial\/<\/li><\/ul><\/li><\/ul>\n\n\n\n<p>\u63a5\u4e0b\u6765\u4e00\u6b65\u4e00\u6b65\u7684\u6267\u884c<\/p>\n\n\n\n<p>\u9996\u5148\uff0c\u66f4\u65b0apt-get\u548ccrul,\u6307\u4ee4\u4e2d\u63d2\u5165&amp;&amp;\u8868\u793a\u6267\u884c\u5b8c\u524d\u8005\uff0c\u5728\u6267\u884c\u540e\u8005<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">apt-get update -y &amp;&amp; apt-get install curl -y<\/pre>\n\n\n\n<p>\u518d\u6765\uff0c\u5229\u7528Bash\u6765\u5b89\u88c5V2ray\uff0c\u6ce8\u610f\u7f51\u4e0a\u6d41\u4f20\u7684\u6307\u4ee4\u4e2d\u4f7f\u7528\u7684url\u662fhttps:\/\/install.direct\/go.sh\uff0c\u800c\u8fd9\u4e2a\u6587\u4ef6\u5df2\u7ecf\u88ab\u66ff\u6362\uff0c\u6240\u4ee5\u6267\u884c\u4ee5\u4e0b\u6307\u4ee4\uff082022.10.22\u4eb2\u6d4b\u6709\u6548,\u4e0d\u8981\u7528sudo\uff0c\u7528sudo -i\uff09\uff1a<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">bash &lt;(curl -L https:\/\/raw.githubusercontent.com\/v2fly\/fhs-install-v2ray\/master\/install-release.sh)<\/pre>\n\n\n\n<p>\u63a5\u4e0b\u6765\uff0c\u4e3a\u540e\u7eed\u7684\u52a0\u5bc6\u914d\u7f6eUUID\uff08\u5168\u5c40\u7528\u6237\u8bc6\u522b\u7801\uff0c\u76f8\u5f53\u4e8e\u52a0\u5bc6\u7528\u6237\u7684ID\uff09<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">cat \/proc\/sys\/kernel\/random\/uuid<\/pre>\n\n\n\n<p>\u7528Vi\u7f16\u8f91\u5668\u521b\u5efa\u548c\u7f16\u8f91V2Ray\u7684\u914d\u7f6e\u6587\u4ef6<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">vi \/usr\/local\/etc\/v2ray\/config.json<\/pre>\n\n\n\n<p>\u8fd9\u91cc\u662f\u670d\u52a1\u5668\u7aef\u7684\u914d\u7f6e\u6587\u4ef6config.json<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">{\n  \"inbounds\": [\n    {\n      \"port\": 1080, \/\/ \u670d\u52a1\u5668\u76d1\u542c\u7aef\u53e3\n      \"protocol\": \"vmess\",    \/\/ \u4e3b\u4f20\u5165\u534f\u8bae\n      \"settings\": {\n        \"clients\": [\n          {\n            \"id\": \"720e422b-5935-424a-8507-64276484af\",  \/\/ \u7528\u6237 ID\uff0c\u5ba2\u6237\u7aef\u4e0e\u670d\u52a1\u5668\u5fc5\u987b\u76f8\u540c\n            \"alterId\": 0\n          }\n        ]\n      }\n    }\n  ],\n  \"outbounds\": [\n    {\n      \"protocol\": \"freedom\",  \/\/ \u4e3b\u4f20\u51fa\u534f\u8bae\n      \"settings\": {}\n    }\n  ]\n}<\/pre>\n\n\n\n<p>\u4fee\u6539\u5b8cconfig.json\u4e4b\u540e\u8981\u91cd\u542f\u670d\u52a1\uff1a<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">systemctl restart v2ray<\/pre>\n\n\n\n<p>\u8bb0\u4f4f\u91cc\u9762\u6700\u91cd\u8981\u7684\u51e0\u4e2a\u53c2\u6570\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>\u670d\u52a1\u5668\u76d1\u542c\u7aef\u53e31080\uff0c\u53ef\u4ee5\u81ea\u5df1\u6539<\/li><li>&#8220;id&#8221;\u53caUUID\uff1a720e422b-5935-424a-8507&#8230;&#8230; \uff0c\u5176\u4e3a\u52a0\u5bc6\u6027\u8f83\u5f3a\u7684\u7528\u6237ID\uff0c\u6709\u5b83\u5c31\u4ee3\u8868\u4e86\u5bc6\u7801<\/li><li>\u4ee5\u4e0a\u5c31\u662f\u5728\u5c0f\u706b\u7bad\u91cc\u9762\u8981\u586b\u7684\u91cd\u8981\u4fe1\u606f<img loading=\"lazy\" decoding=\"async\" width=\"480\" height=\"1041\" class=\"wp-image-3023\" style=\"width: 480px;\" src=\"https:\/\/blog.zengqq.com.cn\/wp-content\/uploads\/2022\/10\/IMG_2458.png\" alt=\"v2ray config client\" srcset=\"https:\/\/blog.zengqq.com.cn\/wp-content\/uploads\/2022\/10\/IMG_2458.png 1179w, https:\/\/blog.zengqq.com.cn\/wp-content\/uploads\/2022\/10\/IMG_2458-443x960.png 443w, https:\/\/blog.zengqq.com.cn\/wp-content\/uploads\/2022\/10\/IMG_2458-472x1024.png 472w, https:\/\/blog.zengqq.com.cn\/wp-content\/uploads\/2022\/10\/IMG_2458-768x1665.png 768w, https:\/\/blog.zengqq.com.cn\/wp-content\/uploads\/2022\/10\/IMG_2458-709x1536.png 709w, https:\/\/blog.zengqq.com.cn\/wp-content\/uploads\/2022\/10\/IMG_2458-945x2048.png 945w\" sizes=\"auto, (max-width: 480px) 100vw, 480px\" \/><\/li><\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u5728Mac\u7684\u670d\u52a1\u5668\u91cc\u9762\u8dd1\u4e86V2ray\uff0c\u54c8\u54c8\u54c8\u54c8\uff01 \u4e3a [&#8230;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[357,253,249,89],"tags":[2747,237],"class_list":["post-3022","post","type-post","status-publish","format-standard","hentry","category-zero2hero","category-fun","category-technology","category-live","tag-config-json","tag-v2ray"],"_links":{"self":[{"href":"https:\/\/blog.zengqq.com.cn\/index.php?rest_route=\/wp\/v2\/posts\/3022","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.zengqq.com.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.zengqq.com.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.zengqq.com.cn\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.zengqq.com.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3022"}],"version-history":[{"count":2,"href":"https:\/\/blog.zengqq.com.cn\/index.php?rest_route=\/wp\/v2\/posts\/3022\/revisions"}],"predecessor-version":[{"id":3026,"href":"https:\/\/blog.zengqq.com.cn\/index.php?rest_route=\/wp\/v2\/posts\/3022\/revisions\/3026"}],"wp:attachment":[{"href":"https:\/\/blog.zengqq.com.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3022"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.zengqq.com.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3022"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.zengqq.com.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3022"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}