Jack Posted November 12, 2021 Share Posted November 12, 2021 (edited) ------------------------------------------------------- CentOS8打开BBR加速,使用阿里云轻量的设置 ------------------------------------------------------- 打开BBR vi /etc/sysctl.conf 将内容修改为 vm.swappiness = 0 kernel.sysrq=1 net.ipv4.neigh.default.gc_stale_time=120 # see details in https://help.aliyun.com/knowledge_detail/39428.html net.ipv4.conf.all.rp_filter=0 net.ipv4.conf.default.rp_filter=0 net.ipv4.conf.default.arp_announce = 2 net.ipv4.conf.lo.arp_announce=2 net.ipv4.conf.all.arp_announce=2 # see details in https://help.aliyun.com/knowledge_detail/41334.html net.ipv4.tcp_max_tw_buckets = 5000 net.ipv4.tcp_syncookies = 1 net.ipv4.tcp_max_syn_backlog = 1024 net.ipv4.tcp_synack_retries = 2 net.core.default_qdisc = fq net.ipv4.tcp_congestion_control = bbr 保存离开 :wq ------------------------------- 关闭selinux ------------------------------- vi /etc/sysconfig/selinux 改為 SELINUX=disabled 保存离开 :wq 重启 sudo reboot sysctl net.ipv4.tcp_available_congestion_control 返回值一般为: net.ipv4.tcp_available_congestion_control = reno cubic bbr sysctl net.ipv4.tcp_congestion_control 返回值一般为: net.ipv4.tcp_congestion_control = bbr sysctl net.core.default_qdisc 返回值一般为: net.core.default_qdisc = fq lsmod | grep bbr 返回值有 tcp_bbr 说明 bbr 已启动 Edited November 12, 2021 by Jack Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now