到手测试
融合怪
1 2
| curl -L https://github.com/spiritLHLS/ecs/raw/main/ecs.sh -o ecs.sh && chmod +x ecs.sh && bash ecs.sh
|
NodeLoc聚合测评脚本
https://github.com/everett7623/nodeloc_vps_test
1 2
| yum install wget&&wget -O Nlbench.sh https://raw.githubusercontent.com/everett7623/nodeloc_vps_test/main/Nlbench.sh && chmod +x Nlbench.sh && ./Nlbench.sh
|
1 2
| wget -O Nlbench.sh https://raw.githubusercontent.com/everett7623/nodeloc_vps_test/main/Nlbench.sh && chmod +x Nlbench.sh && ./Nlbench.sh
|
ip解锁
1
| bash <(curl -Ls IP.Check.Place)
|
路由追踪
1
| curl nxtrace.org/nt |bash
|
查看vps回程路由
iperf测速,测试单线程,如果重传严重需调整tcp缓冲区
1 2 3 4 5
| apt update apt install iperf3
iperf3.exe -c 小鸡的ip -P 1 -t 60 -R
|
检查是否超售
1
| lsmod | grep virtio_balloon
|
VPS服务
脚本合集
1 2
| 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
|
1 2 3 4
| bash <(curl -sL kejilion.sh)
bash <(curl -sS https://raw.githubusercontent.com/kejilion/sh/main/kejilion.sh | sed ‘/UserLicenseAgreement()\s*{/a return’ | sed ‘/send_stats()\s*{/a return’)
|
dd系统
1 2 3 4 5 6
|
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
|
1 2 3 4
|
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
|
1 2 3 4
| 第三方 https://minlearn.org/inst https://github.com/bohanyang/debi https://github.com/LloydAsp/OsMutation
|
系统优化
虚拟内存
1 2 3 4 5 6 7 8
|
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
|
修改ssh端口
1 2 3 4 5
| sudo nano /etc/ssh/sshd_config 修改取消注释,把22改成你想要的端口 Port <你想要的端口> sudo systemctl restart sshd
|
允许密钥登录
1 2 3 4 5 6 7 8 9 10 11 12
| 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防火墙
1 2 3 4 5 6 7 8 9
| sudo apt install ufw -y sudo ufw default allow outgoing sudo ufw default deny incoming sudo ufw allow 22 sudo ufw enable sudo ufw stauts 具体建议查看佬友的帖子 https://linux.do/t/topic/267502?u=ggsmida
|
Fail2ban
1 2 3 4 5 6 7 8 9 10 11 12
| 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
|
修改主机名
增加dns
1 2 3 4 5 6 7
| 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
chattr -i /etc/resolv.conf sudo nano /etc/resolv.conf chattr +i /etc/resolv.conf
|
tcp调优
1 2 3 4 5 6
|
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
1 2 3
|
bash <(wget -qO- -o- https://github.com/233boy/sing-box/raw/main/install.sh)
|
sing-box+订阅
1 2 3
|
bash <(wget -qO- https://raw.githubusercontent.com/fscarmen/sing-box/main/sing-box.sh)
|
mack-a 8合1 sing-box
1 2 3
|
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
1 2 3
|
bash <(curl -Ls https://raw.githubusercontent.com/yonggekkk/sing-box-yg/main/sb.sh)
|
3x-ui
1 2 3
|
bash <(curl -Ls https://raw.githubusercontent.com/mhsanaei/3x-ui/master/install.sh)
|
warp解锁
1 2 3 4 5 6
|
wget -N https://gitlab.com/fscarmen/warp/-/raw/main/menu.sh && bash menu.sh [option] [lisence/url/token]
warp [option] [lisence]
|
端口转发
1 2 3 4 5
|
wget -N https://raw.githubusercontent.com/qqrrooty/EZrealm/main/realm.sh && chmod +x realm.sh && ./realm.sh
wget --no-check-certificate -O gost.sh https://raw.githubusercontent.com/qqrrooty/EZgost/main/gost.sh && chmod +x gost.sh && ./gost.sh
|
CFWarp
1 2
| bash <(wget -qO- https://gitlab.com/rwkgyg/CFwarp/raw/main/CFwarp.sh 2> /dev/null)
|
或者
1
| bash <(curl -Ls https://gitlab.com/rwkgyg/CFwarp/raw/main/CFwarp.sh)
|
多平台优选WARP对端IP + 无限生成WARP-Wireguard配置 脚本
1
| curl -sSL https://gitlab.com/rwkgyg/CFwarp/raw/main/point/endip.sh -o endip.sh && chmod +x endip.sh && ./endip.sh
|
建站
1panel
1
| curl -sSL https://resource.fit2cloud.com/1panel/package/quick_start.sh -o quick_start.sh && sudo bash quick_start.sh
|
aapanel
1
| URL=https://www.aapanel.com/script/install_7.0_en.sh && if [ -f /usr/bin/curl ];then curl -ksSO "$URL" ;else wget --no-check-certificate -O install_7.0_en.sh "$URL";fi;bash install_7.0_en.sh aapanel
|
宝塔
1
| wget -O install.sh https://download.bt.cn/install/install_lts.sh && bash install.sh ed8484bec
|
Docker
安装
1 2 3
| curl -fsSL https://get.docker.com -o get-docker.sh sudo sh get-docker.sh
|
更新
详情见
https://www.ioiox.com/archives/84.html
Arguments - Watchtower
1 2 3 4 5 6
| docker run --rm \ -v /var/run/docker.sock:/var/run/docker.sock \ containrrr/watchtower \ --cleanup \ --run-once
|
感谢
内容采集自[email protected]