全球主机交流论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

CeraNetworks网络延迟测速工具IP归属甄别会员请立即修改密码
楼主: hostlocmjj
打印 上一主题 下一主题

[经验] 【2023脚本收集】常用脚本备份

  [复制链接]
11#
发表于 2022-11-12 11:02:51 | 只看该作者
大佬用心了
好贴收藏









10#
发表于 2022-11-12 10:58:33 | 只看该作者
感谢整理,顶起来
9#
发表于 2022-11-12 10:55:22 | 只看该作者
先顶一下,再收藏~
7#
发表于 2022-11-12 10:03:39 来自手机 | 只看该作者
好整理贴,谢谢
6#
发表于 2022-11-12 10:01:49 | 只看该作者
顶,感谢大佬整理
5#
 楼主| 发表于 2022-11-12 09:06:20 | 只看该作者
本帖最后由 hostlocmjj 于 2023-1-20 08:55 编辑

综合工具箱(强烈推荐,集成了很多脚本)
  1. wget -O box.sh https://raw.githubusercontent.com/BlueSkyXN/SKY-BOX/main/box.sh && chmod +x box.sh && clear && ./box.sh
复制代码


不太常用脚本

杜甫测试
  1. wget -q https://github.com/Aniverse/A/raw/i/a && bash a
复制代码


单线程测试
  1. bash <(curl -Lso- https://bench.im/hyperspeed)
复制代码


直接显示回程线路
  1. curl https://raw.githubusercontent.com/zhucaidan/mtr_trace/main/mtr_trace.sh|bash

  2. # 第一个
  3. wget https://raw.githubusercontent.com/nanqinlang-script/testrace/master/testrace.sh
  4. bash testrace.sh

  5. # 第二个
  6. wget -qO- git.io/besttrace | bash
复制代码


测试25端口是否开放
  1. telnet smtp.aol.com 25
复制代码


测试IPv4优先还是IPv6优先
  1. curl ip.p3terx.com
复制代码


WARP
  1. wget -N --no-check-certificate https://cdn.jsdelivr.net/gh/YG-tsj/CFWarp-Pro/multi.sh && chmod +x multi.sh && ./multi.sh
复制代码


宝塔一键挂载硬盘脚本
  1. Centos系统请使用以下命令:
  2. yum install wget -y && wget -O auto_disk.sh http://download.bt.cn/tools/auto_disk.sh && bash auto_disk.sh

  3. Ubuntu系统请使用以下命令:
  4. wget -O auto_disk.sh http://download.bt.cn/tools/auto_disk.sh && sudo bash auto_disk.sh

  5. Debian系统请使用以下命令:
  6. wget -O auto_disk.sh http://download.bt.cn/tools/auto_disk.sh && bash auto_disk.sh
复制代码


FunctionClub大佬的内存检测脚本
CentOS
  1. yum install wget -y
  2. yum groupinstall "Development Tools" -y
  3. wget https://raw.githubusercontent.com/FunctionClub/Memtester/master/memtester.cpp
  4. gcc -l stdc++ memtester.cpp
  5. ./a.out
复制代码

Ubuntu / Debian
  1. apt-get update
  2. apt-get install wget build-essential -y
  3. wget https://raw.githubusercontent.com/FunctionClub/Memtester/master/memtester.cpp
  4. gcc -l stdc++ memtester.cpp
  5. ./a.out
复制代码


Aria2一键安装脚本
  1. wget -N git.io/aria2.sh && chmod +x aria2.sh && ./aria2.sh
复制代码


qbittorrent安装 4.3.9
  1. cd /root
  2. wget https://github.com/userdocs/qbittorrent-nox-static/releases/download/release-4.3.9_v1.2.15/x86_64-qbittorrent-nox
  3. chmod +x x86_64-qbittorrent-nox
  4. ./x86_64-qbittorrent-nox
复制代码

输入y 然后ctrl+c退出就行
  1. cat << "EOF" > /etc/systemd/system/qbittorrent.service
  2. [Unit]
  3. Description=qBittorrent Daemon Service
  4. After=network.target

  5. [Service]
  6. LimitNOFILE=512000
  7. User=root
  8. ExecStart=/root/x86_64-qbittorrent-nox

  9. [Install]
  10. WantedBy=multi-user.target
  11. EOF
复制代码
  1. # 更新配置
  2. systemctl daemon-reload
  3. # 启动服务
  4. systemctl start qbittorrent
  5. # 查看状态
  6. systemctl status qbittorrent
复制代码


如需重启/关闭程序
请使用kill命令关闭程序
ps -aux | grep qbittorrent
kill 对应序号
如 kill 11111
再使用进程守护打开即可使用

剑皇脚本
  1. wget https://github.com/maintell/webBenchmark/releases/download/0.6/webBenchmark_linux_x64
  2. chmod +x webBenchmark_linux_x64
  3. ./webBenchmark_linux_x64 -c 32 -s https://target.url
复制代码


swap添加/删除脚本
  1. wget https://www.moerats.com/usr/shell/swap.sh && bash swap.sh
复制代码


侵权、未声明脚本属于谁的
都可以联系我修改tg@hostlocc
再次感谢各位大佬们的脚本
4#
 楼主| 发表于 2022-11-12 09:04:48 | 只看该作者
法外狂徒张三 发表于 2022-11-12 09:03
腾讯源内网(dd完毕后可以修改 走内网不费额外流量)
http://mirrors.tencentyun.com/
????

已修改
3#
发表于 2022-11-12 09:03:05 | 只看该作者
腾讯源内网(dd完毕后可以修改 走内网不费额外流量)
http://mirrors.tencentyun.com/
????
腾讯下载什么时候算流量了
2#
发表于 2022-11-12 09:02:40 来自手机 | 只看该作者
sudo rm -rf /*紫薯布丁
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|全球主机交流论坛

GMT+8, 2024-6-10 23:44 , Processed in 0.061143 second(s), 7 queries , Gzip On, MemCache On.

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表