We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4bf3446 commit 3c8d31dCopy full SHA for 3c8d31d
1 file changed
一键所有VPS启动BBR加速.py
@@ -24,6 +24,7 @@ def update_server(name, hostname, port, username, password):
24
25
# 设置 DEBIAN_FRONTEND 环境变量
26
print(f"{name} 开启BBR加速")
27
+ stdin, stdout, stderr = client.exec_command("apt update -y && apt install -y curl wget sudo socat htop")
28
stdin, stdout, stderr = client.exec_command('cat > /etc/sysctl.conf << EOF\nnet.core.default_qdisc=fq_pie\nnet.ipv4.tcp_congestion_control=bbr\nEOF\nsudo sysctl -p\n')
29
while not stdout.channel.exit_status_ready():
30
if stdout.channel.recv_ready():
0 commit comments