常用的VPS一键脚本Debian
科技lion脚本
bash <(curl -sL kejiLion.sh)
一键更新系统
# 更新/升级系统
apt update -y && apt full-upgrade -y && apt autoremove -y && apt autoclean -y
# 查看系统当前版本
cat /etc/debian_version
一键安装 wget curl git
apt install sudo curl wget
Linux内核开启bbr(内核需4.9以上)
# 查看内核版本
uname -a
# 开启bbr
echo -e "net.core.default_qdisc=fq\nnet.ipv4.tcp_congestion_control=bbr" >> /etc/sysctl.conf
# 关闭IPv6
echo -e "net.ipv6.conf.all.disable_ipv6=1\nnet.ipv6.conf.default.disable_ipv6=1\nnet.ipv6.conf.lo.disable_ipv6=1" >> /etc/sysctl.conf
# 生效配置
sysctl -p
测速
curl -sL nxtrace.org/speedtest_install | bash
IP 质量体检和解锁检测
bash <(curl -Ls IP.Check.Place)
bash <(curl -L -s check.unlock.media)
bash <(curl -L -s https://github.com/1-stream/RegionRestrictionCheck/raw/main/check.sh) -M 4
验证dns
cat /etc/resolv.conf
回程路由
wget -qO- git.io/besttrace | bash
IPv4 ICMP Trace
curl -sL nxtrace.org/nt | bash
融合怪
curl -L https://gitlab.com/spiritysdx/za/-/raw/main/ecs.sh -o ecs.sh && chmod +x ecs.sh && bash ecs.sh
一键realm
国外机器
wget -N https://raw.githubusercontent.com/qqrrooty/EZrealm/main/realm.sh && chmod +x realm.sh && ./realm.sh
国内机器
wget -N https://ghfast.top/https://raw.githubusercontent.com/qqrrooty/EZrealm/main/CN/realm.sh && chmod +x realm.sh && ./realm.sh
再次运行本脚本只需要输入./realm.sh回车即可
重启命令
# 优雅重启(推荐,等待进程结束后重启)
sudo reboot
强制重启(紧急情况用,可能丢失临时数据)
sudo poweroff -r now