月色真美

月色真美

v2ray安装教程

47
2025-04-19

1.服务端安装

安装项目:https://github.com/v2fly/fhs-install-v2ray

安装命令

bash <(curl -L https://raw.githubusercontent.com/v2fly/fhs-install-v2ray/master/install-release.sh)

开机启动

systemctl enable v2ray

将以下配置保存为 config.json 文件,并替换掉 /usr/local/etc/v2ray/config.json,最后执行 systemctl restart v2ray 重启

{
  "log": {
    "access": "/var/log/v2ray/access.log",
    "error": "/var/log/v2ray/error.log",
    "loglevel": "warning"
  },
  "inbounds": [
    {
      "port": 6688,
      "protocol": "vmess",
      "settings": {
        "clients": [
          {
            "id": "6501e743-0bc9-4ebe-bbb8-be159c356696"
          }
        ]
      }
    }
  ],
  "outbounds": [
    {
      "protocol": "freedom"
    }
  ]
}

2.客户端安装

2.1.Windows客户端

Clash-for-Windows_Chinese

mihomo

clash-verge

2.2.Android客户端

Clash for Android

ClashMetaForAndroid

2.3.Magisk透明代理版

Surfing

安装重启后,进入 /data/adb/box_bll/clash/config.yaml 默认配置:config.yaml

修改里面 your- 开头的配置,再重启 surfing 就行(模块处关闭模块再开启就行)