常用脚本合集

一、国内机&ipv6常用脚本:
1. 换源

bash <(curl -sSL https://gitee.com/SuperManito/LinuxMirrors/raw/main/ChangeMirrors.sh)

2.安装warp

wget -N https://gitlab.com/fscarmen/warp/-/raw/main/menu.sh && bash menu.sh 4

然后测试 ping google.com 有没有通即可

3.安装warp

二、其他常用脚本:

1. 一键脚本工具箱

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

wget -qO ssh_tool.sh https://raw.githubusercontent.com/eooce/ssh_tool/main/ssh_tool.sh && chmod +x ssh_tool.sh && ./ssh_tool.sh

若提示curl或wget未找到,说明vps上未安装此依赖,安装后再运行即可,对应系统安装命令如下:

Ubuntu/Debian:apt-get install -y curl wget

Alpine:apk add curl wget

Fedora:dnf install -y curl wget

CentOS/Rocky/Almalinux/Oracle-linux/Amazon-linux:

yum install -y curl wget
wget -O Tool https://blog.xueli.lol/Script/Tool.sh; mv Tool /usr/local/bin/; cd /usr/local/bin/ && chmod +x Tool && bash Tool