记录一下 KVM服务器的bbr加速

大神的一键安装bbr含 自动升级内核。

wget --no-check-certificate https://github.com/teddysun/across/raw/master/bbr.sh && chmod +x bbr.sh && ./bbr.sh
echo "net.core.default_qdisc=fq" >> /etc/sysctl.conf
echo "net.ipv4.tcp_congestion_control=bbr" >> /etc/sysctl.conf
sysctl -p  #保存生效

sysctl net.ipv4.tcp_available_congestion_control  #查看内核是否已开启BBR
lsmod | grep bbr  #查看BBR是否启动

 

v2ray install

apt-get install curl

bash <(curl -L -s https://install.direct/go.sh)

v2ray config

{
	"log":{
		"loglevel":"warning",
		"access":"/tmp/v2ray_access.log",
		"error":"/tmp/v2ray_error.log"
	},
	"inbound": {
	"port": 10001, 
	"protocol": "vmess",    
	"settings": {
	  "clients": [
		{
		  "id": "334424bb-a181-45b3-a5bc-e4effb828949",  
		  "alterId": 64
		},
		{
		  "id": "665a5fa6-4521-485b-941e-06e1179df0c1",  
		  "alterId": 64
		},
		{
		  "id": "9b2e988b-17dd-4b88-bd58-d248594e9379",  
		  "alterId": 64
		}
	  ]
	}
	},
	"outbound": {
	"protocol": "freedom",  
	"settings": {}
	}
}

 

你可能感兴趣的:(个人记录)