90301-u1do0yjsqs.png

使用命令添加

echo "net.core.default_qdisc=fq" >> /etc/sysctl.conf
echo "net.ipv4.tcp_congestion_control=bbr" >> /etc/sysctl.conf
sysctl -p
sysctl -n net.ipv4.tcp_congestion_control

修改文件添加

/etc/sysctl.conf

该文件最终看起来如下

# sysctl settings are defined through files in
# /usr/lib/sysctl.d/, /run/sysctl.d/, and /etc/sysctl.d/.
#
# Vendors settings live in /usr/lib/sysctl.d/.
# To override a whole file, create a new file with the same in
# /etc/sysctl.d/ and put new settings there. To override
# only specific settings, add a file with a lexically later
# name in /etc/sysctl.d/ and put new settings there.
#
# For more information, see sysctl.conf(5) and sysctl.d(5).

net.ipv4.icmp_echo_ignore_all=1
net.core.default_qdisc=fq
net.ipv4.tcp_congestion_control=bbr
Last modification:February 25th, 2021 at 11:52 pm
如果你想请我喝杯咖啡的话,那我将可以度过不打瞌睡的一个上午。