目录
- 服务器测试相关<a href="https://github.com/Bytedo/shell#%E6%9C%8D%E5%8A%A1%E5%99%A8%E6%B5%8B%E8%AF%95%E7%9B%B8%E5%85%B3"></a>
- 查看CPU信息<a href="https://github.com/Bytedo/shell#%E6%9F%A5%E7%9C%8Bcpu%E4%BF%A1%E6%81%AF"></a>
- 查看 25 端口是否开放<a href="https://github.com/Bytedo/shell#%E6%9F%A5%E7%9C%8B-25-%E7%AB%AF%E5%8F%A3%E6%98%AF%E5%90%A6%E5%BC%80%E6%94%BE"></a>
- 测试 IPv4 优先还是 IPv6 优先<a href="https://github.com/Bytedo/shell#%E6%B5%8B%E8%AF%95-ipv4-%E4%BC%98%E5%85%88%E8%BF%98%E6%98%AF-ipv6-%E4%BC%98%E5%85%88"></a>
- 单线程测试<a href="https://github.com/Bytedo/shell#%E5%8D%95%E7%BA%BF%E7%A8%8B%E6%B5%8B%E8%AF%95"></a>
- 最全测速脚本<a href="https://github.com/Bytedo/shell#%E6%9C%80%E5%85%A8%E6%B5%8B%E9%80%9F%E8%84%9A%E6%9C%AC"></a>
- superbench<a href="https://github.com/Bytedo/shell#superbench"></a>
- Bench.sh<a href="https://github.com/Bytedo/shell#benchsh"></a>
- 显示延迟、抖动<a href="https://github.com/Bytedo/shell#%E6%98%BE%E7%A4%BA%E5%BB%B6%E8%BF%9F%E6%8A%96%E5%8A%A8"></a>
- 直接显示回程线路<a href="https://github.com/Bytedo/shell#%E7%9B%B4%E6%8E%A5%E6%98%BE%E7%A4%BA%E5%9B%9E%E7%A8%8B%E7%BA%BF%E8%B7%AF"></a>
- 四网测速<a href="https://github.com/Bytedo/shell#%E5%9B%9B%E7%BD%91%E6%B5%8B%E9%80%9F"></a>
- 三网测速<a href="https://github.com/Bytedo/shell#%E4%B8%89%E7%BD%91%E6%B5%8B%E9%80%9F"></a>
- Speedtest<a href="https://github.com/Bytedo/shell#speedtest"></a>
- 检测服务器内存<a href="https://github.com/Bytedo/shell#%E6%A3%80%E6%B5%8B%E6%9C%8D%E5%8A%A1%E5%99%A8%E5%86%85%E5%AD%98"></a>
- VPS参考级测评脚本——网络质量体检脚本
- AI 相关<a href="https://github.com/Bytedo/shell#openai-%E7%9B%B8%E5%85%B3"></a>
- 服务器软件
- 安装 wget<a href="https://github.com/Bytedo/shell#%E5%AE%89%E8%A3%85-wget"></a>
- Aria2一键安装脚本<a href="https://github.com/Bytedo/shell#aria2%E4%B8%80%E9%94%AE%E5%AE%89%E8%A3%85%E8%84%9A%E6%9C%AC"></a>
- Cloudflare warp一键脚本<a href="https://github.com/Bytedo/shell#cloudflare-warp%E4%B8%80%E9%94%AE%E8%84%9A%E6%9C%AC"></a>
- 删除腾讯云监控<a href="https://github.com/Bytedo/shell#%E5%88%A0%E9%99%A4%E8%85%BE%E8%AE%AF%E4%BA%91%E7%9B%91%E6%8E%A7"></a>
- X-UI<a href="https://github.com/Bytedo/shell#x-ui"></a>
- 缝合工具箱<a href="https://github.com/Bytedo/shell#%E7%BC%9D%E5%90%88%E5%B7%A5%E5%85%B7%E7%AE%B1"></a>
- 一键安装 Pyenv 设置镜像<a href="https://github.com/Bytedo/shell#%E4%B8%80%E9%94%AE%E5%AE%89%E8%A3%85-pyenv-%E8%AE%BE%E7%BD%AE%E9%95%9C%E5%83%8F"></a>
服务器测试相关
查看CPU信息
cat /proc/cpuinfo
查看 25 端口是否开放
telnet smtp.aol.com 25
测试 IPv4 优先还是 IPv6 优先
curl ip.p3terx.com
单线程测试
bash <(curl -Lso- https://bench.im/hyperspeed)
最全测速脚本
curl -fsL https://ilemonra.in/LemonBenchIntl | bash -s fast
superbench
wget -qO- git.io/superbench.sh | bash
Bench.sh
wget -qO- bench.sh | bash
显示延迟、抖动
bash <(wget -qO- https://bench.im/hyperspeed)
直接显示回程线路
curl https://raw.githubusercontent.com/zhucaidan/mtr_trace/main/mtr_trace.sh|bash
wget -q route.f2k.pub -O route && bash route
四网测速
wget -O jcnf.sh https://raw.githubusercontent.com/Netflixxp/jcnfbesttrace/main/jcnf.sh
bash jcnf.sh
三网测速
bash <(curl -Lso- https://git.io/superspeed_uxh)
带快速四网测试版本:
bash <(curl -Lso- https://dl.233.mba/d/sh/speedtest.sh)
bash <(curl -Lso- https://git.io/J1SEh)
Speedtest
Debian/Ubuntu 导入 GPG Key 并添加源
apt install -y lsb-release ca-certificates apt-transport-https curl gnupg dpkg
curl -sSL https://packagecloud.io/ookla/speedtest-cli/gpgkey | gpg --dearmor > /usr/share/keyrings/speedtest.gpg
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/speedtest.gpg] https://packagecloud.io/ookla/speedtest-cli/debian/ $(lsb_release -sc) main" > /etc/apt/sources.list.d/speedtest.list
安装使用speedtest
apt update
apt install speedtest -y
speedtest -h #查看高级用法
speedtest -i ip #指定出口ip
speedtest -L #查看附近的测速节点列表
检测服务器内存
CentOS / RHEL
yum install wget -y
yum groupinstall "Development Tools" -y
wget https://raw.githubusercontent.com/FunctionClub/Memtester/master/memtester.cpp
gcc -l stdc++ memtester.cpp
./a.out
Ubuntu / Debian
apt-get update
apt-get install wget build-essential -y
wget https://raw.githubusercontent.com/FunctionClub/Memtester/master/memtester.cpp
gcc -l stdc++ memtester.cpp
./a.out
VPS参考级测评脚本——网络质量体检脚本
开源地址:https://github.com/xykt/NetQuality
bash <(curl -sL Net.Check.Place)
AI 相关
检测是否可以访问 ChatGPT
bash <(curl -Ls https://raw.githubusercontent.com/missuo/OpenAI-Checker/main/openai.sh)
服务器软件
安装 wget
CentOS
yum install wget -y
Ubuntu / Debian
apt-get install wget -y
Aria2一键安装脚本
wget -N git.io/aria2.sh && chmod +x aria2.sh && ./aria2.sh
Cloudflare warp一键脚本
wget -N https://raw.githubusercontent.com/fscarmen/warp/main/menu.sh && bash menu.sh [option] [lisence]
作者github:https://github.com/fscarmen/warp
WARP
wget -N --no-check-certificate https://cdn.jsdelivr.net/gh/YG-tsj/CFWarp-Pro/multi.sh && chmod +x multi
bash multi.sh // 启动
删除腾讯云监控
sudo -i
systemctl stop tat_agent
systemctl disable tat_agent
/usr/local/qcloud/stargate/admin/uninstall.sh
/usr/local/qcloud/YunJing/uninst.sh
/usr/local/qcloud/monitor/barad/admin/uninstall.sh
rm -f /etc/systemd/system/tat_agent.service
rm -rf /usr/local/qcloud
rm -rf /usr/local/sa
rm -rf /usr/local/agenttools
rm -rf /usr/local/qcloud
process=(sap100 secu-tcs-agent sgagent64 barad_agent agent agentPlugInD pvdriver )
for i in ${process[@]}
do
for A in $(ps aux | grep $i | grep -v grep | awk '{print $2}')
do
kill -9 $A
done
done
X-UI
bash <(curl -Ls https://raw.githubusercontent.com/FranzKafkaYu/x-ui/master/install.sh)
缝合工具箱
wget -O box.sh https://raw.githubusercontent.com/BlueSkyXN/SKY-BOX/main/box.sh && chmod +x box.sh && clear && ./box.sh
一键安装 Pyenv 设置镜像
适用于 debain/Ubuntu 优化国内机器安装部署网络
curl -O https://raw.githubusercontent.com/Bytedo/shell/refs/heads/main/install_pyenv_cn.sh && chmod +x install_pyenv_cn.sh && ./install_pyenv_cn.sh
0