简介
不少小伙伴都习惯了使用图形界面的v2ray,但是无界面的linux命令行v2ray应该用的很少,本篇介绍一下v2ray在linux命令上的安装及使用方法
教程
下方是一键安装和更新v2ray
bash <(curl -L https://raw.githubusercontent.com/v2fly/fhs-install-v2ray/master/install-release.sh)
只更新.dat
bash <(curl -L https://raw.githubusercontent.com/v2fly/fhs-install-v2ray/master/install-dat-release.sh)
完成后我们可以看到v2ray的配置文件及日志的路径等

我们需要去修改config.json配置文件,把节点配置信息复制到config.json中保存
vi /usr/local/etc/v2ray/config.json

最后就是使用启动命令
systemctl enable v2ray
systemctl start v2ray
再去这里查询一下IP,看看是否显示节点IP
curl ipinfo.io
移除 V2Ray
bash <(curl -L https://raw.githubusercontent.com/v2fly/fhs-install-v2ray/master/install-release.sh) --remove








