Ubuntu常用命令

软件更新

apt update && apt upgrade -y

同步时间

timedatectl set-timezone Asia/Shanghai

开启BBR

修改系统变量:

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

查看是否开启,SSH界面有输出代表成功。

lsmod | grep bbr

网络优化

wget http://sh.nekoneko.cloud/tools.sh -O tools.sh && bash tools.sh

开放全部端口

iptables -P INPUT ACCEPT
iptables -P FORWARD ACCEPT
iptables -P OUTPUT ACCEPT
iptables -F
iptables-save
netfilter-persistent save
netfilter-persistent reload

一键DD系统(Ubuntu20.04)

bash <(wget --no-check-certificate -qO- 'http://download.8t.cx/dd/Tools/master/Linux_reinstall/InstallNET.sh')  -ubuntu 20.04 -pwd 'Qq123456' -port "22" 

密码为Qq123456

© 版权声明
THE END
喜欢就支持一下吧
点赞0 分享
评论 抢沙发
头像
欢迎您留下宝贵的见解!
提交
头像

昵称

取消
昵称表情代码图片

    暂无评论内容