VPS常用脚本集合(持续更新)

BBR 是 Google 提出的一种新型拥塞控制算法,可以使 Linux 服务器显著地提高吞吐量和减少 TCP 连接的延迟

BBR一键脚本:

支持环境:Centos 7, Debian 8/9, Ubuntu 16/18

root用户登录服务器,执行以下命令:

wget -N --no-check-certificate "https://raw.githubusercontent.com/chiakge/Linux-NetSpeed/master/tcp.sh" && chmod +x tcp.sh && ./tcp.sh

 

开启 Debian CentOS 自带BBR加速:

root用户登录服务器,执行以下命令:

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

 

综合工具箱(推荐):

wget -O box.sh https://raw.githubusercontent.com/BlueSkyXN/SKY-BOX/main/box.sh && chmod +x box.sh && clear && ./box.sh

 

综合工具箱 2:

bash <(wget -qO- --no-check-certificate https://gitlab.com/spiritysdx/za/-/raw/main/ecs.sh)

 

DD脚本:

  • DD成Debian 10(支持Oracle AMD,Oracle ARM)
  • -p 后面写自定义密码
bash <(wget --no-check-certificate -qO- 'https://moeclub.org/attachment/LinuxShell/InstallNET.sh') -d 10 -v 64 -a -firmware -p 密码

 

CentOS 关闭防火墙:

systemctl start supervisord
systemctl disable firewalld
systemctl stop firewalld

 

基础依赖:

Centos依赖安装命令:

yum -y install wget
yum -y install curl

Debian/Ubuntu依赖安装命令:

apt-get install wget
apt-get install curl

 

系统更新:

apt update -y  #Debian
yum update -y   #CentOS

 

vps关闭ipv6地址:

DNS解码的时需要IP地址授权,因为IPV6和IPV4同时存在,会导致解码失败

要禁用IPv6,只需在nano /etc/sysctl.conf中添加如下两行:

net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1

之后执行:

sysctl -p

 

 

THE END