常用 Linux 运维脚本合集

常用 Linux 运维脚本合集持续更新，收录日常使用频率最高的服务器运维脚本。 🦁 科技 LION 一键脚本官网版 Bash curl -sS -O https://kejilion.pro/kejilion.sh && chmod +x kejilion.sh && ./kejilion.sh GitHub 版 Bash curl -sS -O https://raw.githubusercontent.com/kejilion/sh/main/kejilion.sh && chmod +x kejilion.sh && ./kejilion.sh 无统计版 Bash bash <(curl -sS https://raw.githubusercontent.com/kejilion/sh/main/kejilion.sh | sed '/UserLicenseAgreement()\s*{/a return' | sed '/send_stats()\s*{/a return') 🌐 Linux 网络优化 Bash wget http://sh.nekoneko.cloud/tools.sh -O tools.sh && sudo bash tools.sh 🔀 Realm 一键脚本安装 Bash wget -N https://raw.githubusercontent.com/qqrrooty/EZrealm/main/realm.sh && chmod +x realm.sh && ./realm.sh 再次启动 Bash ./realm.sh 删除脚本（更新前执行） Bash rm realm.sh 💿 重装系统下载脚本 Bash curl -O https://raw.githubusercontent.com/bin456789/reinstall/main/reinstall.sh 安装 Debian 12 Bash bash reinstall.sh debian 12 🔧 系统维护一键纯净更新 Bash apt update -y && apt full-upgrade -y 安装常用工具 Bash apt install -y curl wget sudo 查看 Debian 版本 Bash cat /etc/debian_version 查看 Ubuntu 版本 Bash cat /etc/lsb-release 🔓 WARP 解锁流媒体 WARP 解锁脚本 Bash bash <(curl -sSL https://gitlab.com/fscarmen/warp_unlock/-/raw/main/unlock.sh) WARP 管理脚本 Bash wget -N https://gitlab.com/Misaka-blog/warp-script/-/raw/main/warp.sh && bash warp.sh 📊 网络测速综合测速 Bash curl -sL network-speed.xyz | bash Speedtest CLI Bash curl -s https://packagecloud.io/install/repositories/ookla/speedtest-cli/script.deb.sh | sudo bash sudo apt-get install speedtest speedtest 指定节点测速 Bash speedtest -s 28912 🚀 流量消耗下载测试工具 Bash wget https://github.com/maintell/webBenchmark/releases/download/0.5/webBenchmark_linux_x64 chmod +x webBenchmark_linux_x64 ./webBenchmark_linux_x64 -c 32 -s https://archlinux.cloudflaremirrors.com/archlinux/iso/latest/archlinux-x86_64.iso 循环跑流量（需先安装依赖） Bash apt update -y && apt install wget bash curl screen -y screen -S Traffic-Buring bash <(curl -Ls https://raw.githubusercontent.com/Miku-Miku-Miku-Miku/Traffic-Burnig/main/traffic-burning.sh) 停止跑流量： Bash screen -X -S Traffic-Buring quit Debian/Ubuntu 一键跑流量 Bash sudo bash <(curl -sSL https://github.com/net818/Consumption-traffic/raw/main/install.sh) 💡 提示：使用前需准备一个解析了服务器 IP 的域名并开启 CF 小黄云。适合月底流量剩余较多时使用。 ⚡ 开启 BBR Bash wget --no-check-certificate https://raw.githubusercontent.com/jinwyp/one_click_script/master/install_kernel.sh && chmod +x ./install_kernel.sh && ./install_kernel.sh 🎬 流媒体检测 Bash bash <(curl -L -s check.unlock.media) 🧪 综合测评融合怪 VPS 测评 Bash curl -L https://gitlab.com/spiritysdx/za/-/raw/main/ecs.sh -o ecs.sh && chmod +x ecs.sh && bash ecs.sh IP 质量检测 Bash bash <(curl -sL IP.Check.Place) 🏔️ Alpine 专用脚本 XrayR 安装 Bash apk add curl && wget -N https://github.com/Cd1s/alpineXrayR/releases/download/one-click/install-xrayr.sh && chmod +x install-xrayr.sh && bash install-xrayr.sh x-ui 安装 Bash apk add curl && apk add bash && bash <(curl -Ls https://raw.githubusercontent.com/Lynn-Becky/Alpine-x-ui/main/alpine-xui.sh) XrayR 重启 Bash /etc/init.d/XrayR restart 🌀 Hysteria2 & Shadowsocks 一键安装 Hy2 Bash bash <(curl -fsSL https://get.hy2.sh/) --version v2.0.0 一键安装 Shadowsocks-Rust Bash wget -O ss-rust.sh --no-check-certificate https://raw.githubusercontent.com/xOS/Shadow