四合一bbr脚本/设置时间

qwq 6月前 255

四合一bbr脚本

支持的系统:Centos 7, Debian 8/9, Ubuntu 16/18

适用环境

  • 系统支持:CentOS 6 ,Debian 7 ,Ubuntu 12
  • 虚拟技术: KVM、Xen、VMware 等,(OpenVZ 不支持!
  • 内存要求:≥128M
echo -e "\nnet.core.default_qdisc=fq\nnet.ipv4.tcp_congestion_control=bbr" >> /etc/sysctl.conf && sysctl -p


wget -N --no-check-certificate "https://gist.github.com/zeruns/a0ec603f20d1b86de6a774a8ba27588f/raw/4f9957ae23f5efb2bb7c57a198ae2cffebfb1c56/tcp.sh" && chmod +x tcp.sh && ./tcp.sh

检查是否开启BBR

sysctl net.ipv4.tcp_congestion_control

如果成功开启,那么会看到以下输出结果

net.ipv4.tcp_congestion_control = bbr

设置服务器时间


timedatectl set-timezone Asia/Hong_Kong


最新回复 (1)
  • qwq 9天前
    引用 2

    更新系统软件包:

    apt update && apt upgrade -y

    安装基础必备工具:Debian 12 默认可能不包含 curlwgetsudo,这些是安装脚本必须的。

    apt install -y curl wget sudo gnupg2 ca-certificates lsb-release


返回
发新帖