1.更新系统环境以及修改默认密码
passwd修改默认密码,防止被爆破
echo root:密码 |sudo chpasswd root
apt-get update && apt-get upgrade -y
2.安装必要软件依赖
apt update -y && apt install -y curl && apt install -y wget && apt install -y git && apt install sudo -y
3.BBR开启(提速必备)
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
lsmod | grep bbr
4.安装swap(系统自带可忽略)
bash <(wget -qO- https://fool.im/swap.sh)