vps交流

20红包求一个开机脚本


乌班图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脚本?

蒂姆·库克 发表于 2022-8-24 20:34
你是说要azure的创建实例之后自动运行开启bbr脚本?

对的,类似

cloud-init
#!/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 -p20红包求一个开机脚本
赞(0)
版权声明:本贴采用知识共享 署名4.0国际许可协议 [BY-NC-SA] 进行授权
帖子名称:《20红包求一个开机脚本》
帖子链接:https://bbs.toot.su/157906.html

相关推荐