Linux脚本

zhenxun
19
2026-02-09

脚本兼容性

CentOS 7 / 8 / 9

RHEL 8 / 9

Debian 10 / 11 / 12

Ubuntu 18.04 ~ 24.04

一键换源

bash <(curl -sSL https://linuxmirrors.cn/main.sh)

GitHub DNS污染修复

curl -fsSL https://xz.xn--kiv765b.top/githubdns.sh

安装MCSM

sudo su -c "wget -qO- https://script.mcsmanager.com/setup_cn.sh | bash"

IPv4/6检查

curl 6.ipw.cn

curl 4.ipw.cn

curl test.ipw.cn

安装docker

bash <(curl -sSL https://linuxmirrors.cn/docker.sh)

安装Trzsz

wget -O trzsz.sh http://download.bt.cn/trzsz/trzsz.sh && bash trzsz.sh && rm -f trzsz.sh && source ~/.bashrc

安装魔方云

wget https://ghfast.top/https://raw.githubusercontent.com/aazooo/zjmf/main/install-zjmf-cloud_new -O install-zjmf-cloud_new && chmod +x install-zjmf-cloud_new && ./install-zjmf-cloud_new

宝塔11安装

if [ -f /usr/bin/curl ];then curl -sSO https://io.bt.sb/install/install_latest.sh;else wget -O install_latest.sh https://io.bt.sb/install/install_latest.sh;fi;bash install_latest.sh && rm -rf install_latest.sh

动物装饰