admin 发表于 2023-12-5 13:34:46

V2Ray

安装教程思路:既然问题是出在网络上,那么换个思路采用本地安装即可,而且官方的安装脚本是支持本地的,如图:
https://img.qzone.work:8443/qzone_work/usr/uploads/2021/01/4148740368.png准备安装
[*]安装脚本:
[*]https://raw.githubusercontent.com/v2fly/fhs-install-v2ray/master/install-release.sh
[*]
[*]v2ray安装包:
[*]https://github.com/v2fly/v2ray-core/releases
v2ray 目前最新版本是 v4.34.0,大家根据自己操作系统来下载对应版本,一般情况下都是 v2ray-linux-64.zip;如果遇到网络打不开或慢导致下载失败,推荐使用 Github 代理下载,然后再上传至服务器。依次执行
[*]<li><div align="left"><font color="rgb(153, 153, 153)"># 1、切换至你的上传目录</font></div>
</li><li><div align="left"><font color="rgb(249, 145, 87)">cd</font> 你的上传目录</div>
</li><li>
</li><li><div align="left"><font color="rgb(153, 153, 153)"># 2、添加执行权限</font></div>
</li><li><div align="left">chmod +x ./install-release.sh   </div>
</li><li>
</li><li><div align="left"><font color="rgb(153, 153, 153)"># 3、指定包执行安装</font></div>
</li><li><div align="left">./install-release.sh -l ./v2ray-linux-64.zip</div></li>

[*]
data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAoQAAABFCAYAAADTnPd3AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAABbvSURBVHhe7Z2/a/NIt8fPs9y/YWGD9oGnWtAfYEyaVL73gjoXaQzXlxfeQlX8Vi5cq3CxkDQ3tRZSXF9w5yrVw0Iw+QPMbrE8EIQXtlgS2GWLLXTPGY3ksSNpZEtOnPj7eThPJI00P86cGZ05lq0PRBSzAAAAAACAIyOOY3p6eqKv9D4AAAAAADhS4BACAAAAABw5cAgBAAAAAI4cOIQAAAAAAEcOHEIAAAAAgCPn3TiEXnBLt7cbEng69QDwgqxeoe/qgwa29CJcn0J93e1tQEmLPQqyYyEl2fGxcHUsMMswyk4lDHzaohaN4QWhUQ+u5wF1YS127d+maKh8W//I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UAAAAA4DiYjWi6+RE9UCBCCAAAAABwpCBCCAAAAAAAFHAImyD7eccCAQAAAAA4YOAQAgAAAAAcOXAIAQAAAACOHDiEAAAAAABHTmMOofx46+1tuL+vcssPo4Y+4ZviAAAAAADN0phDOBt1aLrP10surmkSdZN3oQIAAAAAgMZIHEKJvql3BK4ifPIqlFs5Fm7zAvuE7Fp9vcpSv7sxPR4GRrSvYvmzmyk554gSAgAAAAA0TfLjKF4Qh75r/FiKG/thEHvZvl38MIzZoYs9n/OSa3k7SwuCmB251fmuFweBv9qvVD5fc5uUsTp2AGL7l3cNBAKBQCAQyCuL8Pj4GK8+Mp7d0Lzdo+wTWa9H7fnNli+QPqH28JYGzh2N+8aLmV2f2q0WXenooJKrAbVazqq8SuXPKFqekPNJ7wIAAAAAgNoYzxAu6HpCdK4+s3XJPyeaXKceXXWi6J6Wzimt+WyLB3bkptTpdDaEnUZ9SlPlAwAAAACA7fjq66+/1puMjtL5/i7RQWFJ0c2I+uLYhcEq2sc53UVtCv3VkVys5XvknHAZX/Tu1rgUqAilWTeTuukAAAAAAG+Pr7777ju9KSRRum53++ic/OxM90Rvn7bo5KRFA3aeQv0tkdloTBPnfPWRcRhSGHjsYplYync/krOc0+edA4e2z5rrpgMAAAAAvEH++c9/rj9g+OzLHS8sJeWz0xmzD5mb9qpi+5d3DQQCgUAgEMgrS/qlkg8//vhj/F///Q9y//E/NGhxkmJJ04s+veQjfBJhLC1ffppmSDTuX9MLVqsaotIyPui/AAAAAAAHBPuD9PT0RB+Wy2X8v5P/o38NLnQS2Bo4hAAAAAB4g6QO4VfffPMN/ed//Dt9//339O233+pkAAAAAABwLHyQz45l49dff6VffvmFfvjhB/rpp5/o559/pt9++02dBAAAAAAA3h/ZR8apQyj89ddf9Pvvv9Off/5Jf/zxB/399986BQAAAAAAvFfWHEIAAAAAAHBsEP0/xjBU8Sm5UTIAAAAASUVORK5CYII=
安装成功
https://img.qzone.work:8443/qzone_work/usr/uploads/2021/01/2369814413.png默认配置文件路径:/usr/local/etc/v2ray/开启自启
[*]systemctl enable v2ray
https://img.qzone.work:8443/qzone_work/usr/uploads/2021/01/3541419777.png更改配置
将以下配置保存为 config.json 文件,并替换掉 /usr/local/etc/v2ray/config.json,最后执行 systemctl restart v2ray 重启。Ps:该配置非常简单,含义是以 tcp + vmess 方式进行流量传输,目前V2Ray 白话文指南已被墙,其它配置可以百度有很多教程,照着改就行。
[*]{
[*]"log": {
[*]    "access": "/var/log/v2ray/access.log",
[*]    "error": "/var/log/v2ray/error.log",
[*]    "loglevel": "warning"
[*]},
[*]"inbounds": [
[*]    {
[*]      "port": 6688,
[*]      "protocol": "vmess",
[*]      "settings": {
[*]      "clients": [
[*]          {
[*]            "id": "8c042a38-71c1-1dcb-00df-54880236e0dc"
[*]          }
[*]
[*]      }
[*]    }
[*]],
[*]"outbounds": [
[*]    {
[*]      "protocol": "freedom"
[*]    }
[*]
[*]}
客户端配置
我 win10 使用的是 v2rayN 进行连接,其它客户端也大同小异,一切配置好之后开启全局代理基本上就可以代理上网了。https://img.qzone.work:8443/qzone_work/usr/uploads/2021/01/925267980.png注意事项
[*]本教程的配置使用的端口 6688,使用之前务必各云服务器商安全组或防火墙均需要开放。
[*]请确保服务器时间和本地时间误差在 30s 内,否则无法正常使用。
[*]服务器 v2ray 日志路径为 /varl/log/v2ray,学会看日志和以及正确使用搜索引擎能够解决 90% 的问题。
结尾与其说是教程不如是说是自己的总结,一键脚本固然好,但知道其原理才能让在遇到问题是知道该怎么入手解决!
页: [1]
查看完整版本: V2Ray