Skip to content

部署v2ray

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

v2ray version
  1. 生成 uuid
v2ray uuid
  1. 修改v2ray配置
vim /usr/local/etc/v2ray/config.json
{
  "inbounds": [
    {
      "port": 10010,
      "protocol": "vmess",
      "settings": {
        "clients": [
          {
            "id": "xxxx",
            "alterId": 0
          }
        ]
      },
      "streamSettings": {
        "network": "tcp"
      }
    }
  ],
  "outbounds": [
    {
      "protocol": "freedom",
      "settings": {}
    }
  ]
}
  1. 启动 v2ray
systemctl start v2ray
# systemctl status v2ray