使用 root 用户输入下面命令安装或卸载
bash <(curl -s -L https://git.io/v2ray.sh)
若上述命令失效,则使用如下命令 :
wget -N --no-check-certificate https://raw.githubusercontent.com/Dabric-MG/v2ray/master/install.sh && bash install.sh
或者使用下述备用命令:
git clone https://github.com/Dabric-MG/v2ray -b master
cd v2ray
chmod +x install.sh
./install.sh local
按照提示安装即可!
网站配置文件:
location / {
proxy_redirect off;
proxy_pass http://127.0.0.1:27874;#WebSocket监听的端口
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $http_host;
}
魔改BBR加速脚本命令:
wget -N --no-check-certificate https://raw.githubusercontent.com/Dabric-MG/YankeeBBR/master/bbr.sh && bash bbr.sh install
然后根据提示重启系统,重启完成后, 启动魔改版BBR
bash bbr.sh start
查看BBR运行状态
sysctl net.ipv4.tcp_available_congestion_control
如果看到有 tsunami 就表示开启成功!
BBR plus版安装命令:
wget -N --no-check-certificate "https://raw.githubusercontent.com/Dabric-MG/Linux-NetSpeed/master/tcp.sh" chmod +x tcp.sh
./tcp.sh
完成后,检查运行状态:
./tcp.sh