安装环境,Centos7 X86 x64 主机是vultr的
1.安装wget
在登录完成的窗口输入下面命令并回车进行wget安装:
yum -y install wget
2.下载脚本
安装完wget之后就可以进行下载安装v2ray的脚本了,输入如下命令并回车:
wget https://install.direct/go.sh
3.安装unzip
因为centos不支持apt-get,我们需要安装unzip:
yum install -y zip unzip
4.执行安装
输入下面的命令并回车执行安装
bash go.sh

5,执行启动命令
systemctl start v2ray
6,查询配置信息
cat /etc/v2ray/config.json

相关命令
## 启动
systemctl start v2ray
## 停止
systemctl stop v2ray
## 重启
systemctl restart v2ray
## 开机自启
systemctl enable v2ray
下载客户端并配置
下载地址:
运行V2RayN.exe

将第6步的配置信息填入下图,点【确定】就可以使用了

如果不能用,查看下是不是服务器端口没开放。
相关:
发表评论