linux V2ray 客户端

Project V-Install on Linux已失效,脚本提示用 fhs-install-v2ray

安裝和更新 V2Ray

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// 安裝執行檔和 .dat 資料檔
# bash <(curl -L https://raw.githubusercontent.com/v2fly/fhs-install-v2ray/master/install-release.sh)

installed: /usr/local/bin/v2ray
installed: /usr/local/bin/v2ctl
installed: /usr/local/share/v2ray/geoip.dat
installed: /usr/local/share/v2ray/geosite.dat
installed: /usr/local/etc/v2ray/config.json
installed: /var/log/v2ray/
installed: /var/log/v2ray/access.log
installed: /var/log/v2ray/error.log
installed: /etc/systemd/system/v2ray.service
installed: /etc/systemd/system/[email protected]

安装完成后提示
Please execute the command: systemctl enable v2ray; systemctl start v2ray

/usr/local/bin/v2ray run -config /usr/local/etc/v2ray/config.json

安裝最新發行的 geoip.dat 和 geosite.dat

1
2
// 只更新 .dat 資料檔
# bash <(curl -L https://raw.githubusercontent.com/v2fly/fhs-install-v2ray/master/install-dat-release.sh)

移除 V2Ray

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

客户端配置文件

自建的,这里从Windows客户端V2rayN中导出config.json

替换或者编辑配置文件/usr/local/etc/v2ray/config.json

1
2
systemctl enable v2ray
systemctl start v2ray