适用于Debian、Ubuntu系统的一键脚本,包含系统优化、性能测试、安全配置等
安装 curl
apt update && apt install curl -y安装 curl 和 wget
apt update -y && apt install curl wget -y安装 unzip 和 zip
apt update && apt install unzipX-UI 面板安装
bash <(curl -Ls https://raw.githubusercontent.com/FranzKafkaYu/x-ui/master/install.sh)开启 BBR 加速
echo "net.core.default_qdisc=fq" >> /etc/sysctl.conf
echo "net.ipv4.tcp_congestion_control=bbr" >> /etc/sysctl.conf
sysctl -p
sysctl net.ipv4.tcp_available_congestion_control
lsmod | grep bbrIP质量体检
bash <(curl -sL IP.Check.Place)流媒体解锁检测
bash <(curl -L -s check.unlock.media) -M 4或使用备用脚本:
bash <(curl -L -s media.ispvps.com)线路回程测试
curl https://raw.githubusercontent.com/zhanghanyun/backtrace/main/install.sh -sSf | sh备用回程测试脚本:
curl https://raw.githubusercontent.com/ludashi2020/backtrace/main/install.sh -sSf | sh融合怪测试脚本
bash <(wget -qO- --no-check-certificate https://gitlab.com/spiritysdx/za/-/raw/main/ecs.sh)YABS 性能测试
wget -qO- yabs.sh | bashYABS(仅CPU和磁盘测试):
curl -sL https://yabs.sh | bash -s -- -i56Bench 测试
wget -qO- bench.sh | bash添加 SWAP 交换空间
wget https://www.moerats.com/usr/shell/swap.sh && bash swap.sh独服详细查询
curl -sL https://raw.githubusercontent.com/Yuri-NagaSaki/SICK/refs/heads/main/hardware_info.sh | bash -s -- -cn查询硬盘通电时间
wget https://github.com/Aniverse/A/raw/i/a && bash a修改默认SSH端口,提升安全性(请将2222替换为您想要的端口):
sed -i 's/#Port\ 22/Port\ 2222/' /etc/ssh/sshd_config && systemctl reload ssh通过防火墙设置禁止PING响应:
iptables -A INPUT -p icmp --icmp-type 8 -s 0/0 -j DROPMySQL 5.7 内存优化配置
performance_schema_max_table_instances=400
table_definition_cache=400
performance_schema=off
innodb_buffer_pool_chunk_size=64M
innodb_buffer_pool_size=64M科技 Lion 脚本
curl -sS -O https://raw.githubusercontent.com/kejilion/sh/main/kejilion.sh && chmod +x kejilion.sh && ./kejilion.sh