20红包求一个开机脚本

121次阅读

共计 442 个字符,预计需要花费 2 分钟才能阅读完成。

乌班图 20. 创建实例的时候直接开启 bbr
开机脚本(开机助手里面填写的)
并非登陆以后运行命令,登陆命令我也有!!!
echo net.core.default_qdisc=fq >> /etc/sysctl.conf
echo net.ipv4.tcp_congestion_control=bbr >> /etc/sysctl.conf
sysctl -p
sysctl net.ipv4.tcp_available_congestion_control
lsmod | grep bbr

网友回复:

注册 你是说要 azure 的创建实例之后自动运行开启 bbr 脚本?

8899 对的,类似

蒂姆·库克 cloud-init

8899 #!/bin/bash sudo echo net.core.default_qdisc=fq >> /etc/sysctl.conf sudo echo net.ipv4.tcp_congestion_control=bbr >> /etc/sysctl.conf sudo sysctl -p

Faker007 没成功

正文完
 0