到手测试
融合怪
curl -L https://github.com/spiritLHLS/ecs/raw/main/ecs.sh -o ecs.sh && chmod +x ecs.sh && bash ecs.sh
IP解锁
bash <(curl -Ls IP.Check.Place)
路由追踪
curl nxtrace.org/nt |bash
查看VPS回程路由
nexttrace 你的宽带IP
iperf测速
测试单线程,如果重传严重需调整TCP缓冲区
apt update
apt install iperf3
电脑下载iperf3.exe,打开文件夹,在地址栏输入cmd
-P线程数,-R测试VPS到自己,去掉-R反向测试
iperf3.exe -c 小鸡的ip -P 1 -t 60 -R
yabs 一键测试
curl -sL https://yabs.sh | bash
NodeQuality 网络测试
bash <(curl -sL https://run.NodeQuality.com)
网络质量快速检测
bash <(curl -sL Net.Check.Place)
三网测速脚本
bash <(curl -sL https://raw.githubusercontent.com/i-abc/Speedtest/main/speedtest.sh)
VPS服务
脚本合集
大杂烩,好用推荐
curl -fsSL https://raw.githubusercontent.com/eooce/ssh_tool/main/ssh_tool.sh -o ssh_tool.sh && chmod +x ssh_tool.sh && ./ssh_tool.sh
科技lion脚本
bash <(curl -sL kejilion.sh)
dd系统重装
leitbogioro (Debian,默认ssh端口,密码LeitboGi0ro)
apt update -y
apt install wget -y
wget --no-check-certificate -qO InstallNET.sh 'https://raw.githubusercontent.com/leitbogioro/Tools/master/Linux_reinstall/InstallNET.sh' && chmod a+x InstallNET.sh
bash InstallNET.sh -debian
bin456789 (煎饼佬,密码123@@@)
curl -O https://raw.githubusercontent.com/bin456789/reinstall/main/reinstall.sh || wget -O reinstall.sh $_
bash reinstall.sh dd --img https://example.com/xxx.xz
其他相关链接
系统优化
增加虚拟内存(swap)
sudo swapon --show # 查看当前交换空间
sudo fallocate -l 2G /swapfile
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile
echo '/swapfile none swap sw 0 0' | sudo tee -a /etc/fstab # 固化开机生效
使用zram虚拟内存
curl -sS -O https://raw.githubusercontent.com/woniu336/open_shell/main/zram_manager.sh && chmod +x zram_manager.sh && ./zram_manager.sh
修改SSH端口
sudo nano /etc/ssh/sshd_config
修改 Port 22 为你想用的端口
sudo systemctl restart sshd
仅允许密钥登录
nano ~/.ssh/authorized_keys # 添加公钥
chmod 600 ~/.ssh/authorized_keys
chmod 700 ~/.ssh
sudo nano /etc/ssh/sshd_config
设置 PasswordAuthentication no
设置 PubkeyAuthentication yes
sudo systemctl restart sshd
安装并配置ufw防火墙
sudo apt install ufw -y
sudo ufw default allow outgoing
sudo ufw default deny incoming
sudo ufw allow 你的SSH端口
sudo ufw enable
sudo ufw status
Fail2ban 防爆破安装
sudo apt install fail2ban
wget https://raw.githubusercontent.com/FunctionClub/Fail2ban/master/fail2ban.sh
bash fail2ban.sh
卸载脚本
wget https://raw.githubusercontent.com/FunctionClub/Fail2ban/master/uninstall.sh
bash uninstall.sh
修改主机名
nano /etc/hosts
修改127.0.1.1后面的主机名为正确名称
DNS修改与解锁
chattr -i /etc/resolv.conf
wget -N --no-check-certificate https://raw.githubusercontent.com/chengziqaq/dnsunblocknetflix/master/dns-change.sh
chmod +x dns-change.sh
./dns-change.sh 要增加的dns
或手动编辑
sudo nano /etc/resolv.conf
chattr +i /etc/resolv.conf
TCP调优(降低重传,增加稳定性)
apt install iperf3
wget -q https://raw.githubusercontent.com/BlackSheep-cry/TCP-Optimization-Tool/main/tool.sh -O tool.sh
chmod +x tool.sh
./tool.sh
科技相关工具
223boy sing-box安装
bash <(wget -qO- -o- https://github.com/233boy/sing-box/raw/main/install.sh)
sing-box + 订阅脚本
bash <(wget -qO- https://raw.githubusercontent.com/fscarmen/sing-box/main/sing-box.sh)
mack-a 8合1 sing-box
wget -P /root -N --no-check-certificate "https://raw.githubusercontent.com/mack-a/v2ray-agent/master/install.sh" && chmod 700 /root/install.sh && /root/install.sh
ygkkk sing-box
bash <(curl -Ls https://raw.githubusercontent.com/yonggekkk/sing-box-yg/main/sb.sh)
3x-ui安装
bash <(curl -Ls https://raw.githubusercontent.com/mhsanaei/3x-ui/master/install.sh)
warp解锁脚本
wget -N https://gitlab.com/fscarmen/warp/-/raw/main/menu.sh && bash menu.sh [option] [license/url/token]
后续运行
warp [option] [license]
端口转发
realm一键脚本
wget -N https://raw.githubusercontent.com/qqrrooty/EZrealm/main/realm.sh && chmod +x realm.sh && ./realm.sh
gost一键脚本
wget --no-check-certificate -O gost.sh https://raw.githubusercontent.com/qqrrooty/EZgost/main/gost.sh && chmod +x gost.sh && ./gost.sh
探针工具
哪吒探针安装
curl -L https://raw.githubusercontent.com/nezhahq/scripts/refs/heads/main/install.sh -o nezha.sh && chmod +x nezha.sh && sudo ./nezha.sh
beszel探针安装(本地版)
curl -sL "https://github.com/henrygd/beszel/releases/latest/download/beszel_$(uname -s)_$(uname -m | sed 's/x86_64/amd64/' | sed 's/armv7l/arm/' | sed 's/aarch64/arm64/').tar.gz" | tar -xz -O beszel | tee ./beszel >/dev/null && chmod +x beszel && ls beszel
./beszel serve
beszel探针Docker版
wget https://github.com/henrygd/beszel/raw/refs/heads/main/supplemental/docker/hub/docker-compose.yml
docker-compose up -d
WebSSH工具
Next terminal
https://docs.next-terminal.typesafe.cn/install/pro-install.html
Easynode
https://github.com/chaos-zhu/easynode
建站相关
1Panel一键安装
curl -sSL https://resource.fit2cloud.com
以上内容转载于zeaurx