Linux-NetSpeed服务器加速脚本

GitHub地址

点这里

#预先准备
centos:yum install ca-certificates wget -y && update-ca-trust force-enable
debian/ubuntu:apt-get install ca-certificates wget -y && update-ca-certificates

#不卸载内核版本
wget -N "https://github.000060000.xyz/tcpx.sh" && chmod +x tcpx.sh && ./tcpx.sh
#卸载内核版本
wget -N "https://github.000060000.xyz/tcp.sh" && chmod +x tcp.sh && ./tcp.sh


#检查bbr 内核默认bbr算法不会有输出
lsmod | grep bbr

#检查centos安装内核
grubby --info=ALL|awk -F= '$1=="kernel" {print i++ " : " $2}'

#查看当前支持TCP算法
cat /proc/sys/net/ipv4/tcp_allowed_congestion_control
#查看当前运行的算法
cat /proc/sys/net/ipv4/tcp_congestion_control
#查看当前队列算法
sysctl net.core.default_qdisc

#命令:
uname -a
#作用: 查看系统内核版本号及系统名称

#命令
cat /proc/version
#作用: 查看目录"/proc"下version的信息,也可以得到当前系统的内核版本号及系统名称