该脚本默认执行时,需要访问国外的服务器下载v2ray-linux-64.zip文件,因为国内屏蔽了,导致不能直接安装v2ray,今天分享一个本地的安装方式。。
首先下载文章结尾的go.sh
和v2-linux-64.zip
两个文件,
上传到服务器的/v2
目录下,运行安装
sudo bash /v2/go.sh --local /v2/v2-linux-64.zip
## 启动
systemctl start v2ray
## 停止
systemctl stop v2ray
## 重启
systemctl restart v2ray
##查询 v2ray运行状态
systemctl status v2ray
## 开机自启
systemctl enable v2ray
配置文件,默认存放路径为:/etc/v2ray/config.json
评论0