v2ray安装概要
hyui 6/8/2019 linuxv2ray
# 安装V2ray
bash <(curl -L -s https://install.direct/go.sh)
- 如果提示curl没有安装可以进行curl的安装
sudo -s #切换到root
apt install curl -y #Ubuntu用这个
yum install curl -y #CentOS7用这个
# 配置文件
脚本运行完后进入/etc/v2ray,找到config.json
vim /etc/v2ray/config.json
将配置写入config.json中
# 控制V2ray的运行
service v2ray start ##运行V2ray
service v2ray stop ##停止运行V2ray
service v2ray status ##查看V2ray的日志
service v2ray reload ##重新载入V2ray
service v2ray restart ##重启V2ray
# 开机自启
systemctl enable v2ray ##开机自启
systemctl disable v2ray ##关闭开机自启