一、脚本安装(https://github.com/v2fly/fhs-install-v2ray
1、sudo -i切换到root模式再安装,否则出错
安裝和更新 V2Ray
2、// 安裝執行檔和 .dat 資料檔

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

安裝最新發行的 geoip.dat 和 geosite.dat
3、// 只更新 .dat 資料檔

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

4、移除 V2Ray

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

二、配置v2ray(https://github.com/v2fly/v2ray-examples)
1、编辑/usr/local/etc/v2ray/config.json
客户端配置举例:

{
  "log": {
    "loglevel": "warning"
  },
  "inbounds": [
    {
      "port": 10809,
      "listen": "127.0.0.1",
      "protocol": "http",
      "settings": {
        "timeout": 360
      }
    }
  ],
  "outbounds": [
    {
      "protocol": "http",
      "settings": {
        "servers": [
          {
            "address": "你的HTTP代理服务器IP",
            "port": 8080
          }
        ]
      }
    }
  ]
}

标签: none

添加新评论