V2ray

V2ray

获取安装包

1
wget https://install.direct/go.sh

执行安装命令

1
sudo bash go.sh

相关命令

1
2
3
4
5
6
7
8
9
10
11
## 启动
sudo systemctl start v2ray

## 停止
sudo systemctl stop v2ray

## 重启
sudo systemctl restart v2ray

## 状态
service v2ray status

配置

配置路径:/etc/v2ray/config.json

1
2
3
4
# 查看配置
cat /etc/v2ray/config.json
# 修改配置
vi /etc/v2ray/config.json

BBR加速

内核需要在4.10之上,而我用的是centos8,满足条件
修改/etc/sysctl.conf文件

1
2
3
# 增加下面两行代码
net.core.default_qdisc=fq
net.ipv4.tcp_congestion_control=bbr

验证:

1
2
3
4
# sysctl net.ipv4.tcp_available_congestion_control
net.ipv4.tcp_available_congestion_control = bbr cubic reno
# lsmod | grep bbr
tcp_bbr 16384 3