1、测速
方案一

wget https://bintray.com/ookla/download/download_file?file_path=ookla-speedtest-1.0.0-x86_64-linux.tgz -O speedtest-cli.tgz && tar xfvz speedtest-cli.tgz && echo yes | ./speedtest

方案二

wget https://raw.github.com/sivel/speedtest-cli/master/speedtest.py #Mr.KevinH原脚本
chmod a+rx speedtest.py #添加权限
python speedtest.py #开始测速

方案二的补充:
生成测速图片:

python speedtest.py --share

指定节点进行测速:

python speedtest.py --list #一次性全部展示出来
#或
python speedtest.py --list|more #每按一次回车展现一条
python speedtest.py --server 4751 #不生成图片
#或
python speedtest.py --server 4751 --share #生成图片

VPS常用脚本以及网页

网页类
1 端口可用性检测
image
https://www.toolsdaquan.com/ipcheck/

可用于检测你IP端口是否被阻断,一般用于检测你搭建科学上网之后连接不通的情况,以及检测自建电报代理封端口

2 ping检测
image
http://ping.chinaz.com/

能查询的东西很多,一般用到的就是ping(他家ping机器很多),站长工具里面还有网站被黑记录 国内网站测速等,顾名思义,站长常用的工具这里有很多

3 ipip
image
https://tools.ipip.net/

他家功能也不错,不过我一般用上面的站长工具,这家的路由测试很出名,并且 Best Trace 路由跟踪 这款软件就是他家的,很好用。

4 建站类
4.1 17测
https://www.17ce.com/
很出名的网站测速网站,这个用一次就知道多好用了

4.2 神级优化网站
https://gtmetrix.com/
帮你找出拖累你网站速度的因素!页面不带中文,用谷歌浏览器翻译成中文使用!建站的小伙伴千万别错过这个网站!

脚本类
1 91yun测试脚本
image
https://www.91yuntest.com/
严格来讲算是网页类,在网页里面选择你需要的功能,功能十分强大,我测试服务器就是用这个脚本测试的。

2 vps加速内核等脚本
2.1 经典四合一脚本

wget -N --no-check-certificate "https://raw.githubusercontent.com/chiakge/Linux-NetSpeed/master/tcp.sh" && chmod +x tcp.sh && ./tcp.sh

image
2.2 新版bbr等脚本,有bbr2
我以前写过这个文章,这个脚本到这里去看 BBR+BBR魔改+Lotsever(锐速)一键脚本

3 服务器综合性能测试脚本
其实综合性能测试最好的是第一个91云。不过用起来还是麻烦,下面这两个不麻烦,功能简单些

3.1 原版测试脚本

wget -qO- --no-check-certificate https://raw.githubusercontent.com/oooldking/script/master/superbench.sh | bash

image
3.2 中文版测试脚本
这个脚本的兼容性没有上面那个好,不过好处就是中文的!

wget -N --no-check-certificate https://raw.githubusercontent.com/FunctionClub/ZBench/master/ZBench-CN.sh && bash ZBench-CN.sh

image
4 回程测试脚本
暂无
5 抓包(CentOS)
首先,

yum install tcpdump

利用ifconfig命令查看网卡的名字。
输入以下命令 这里不抓取目标为22端口(ssh)的所有指定网卡(eth0)的包
tcpdump -ni eth0 port not 22
7 流媒体测试脚本(选一个就行)

bash <(curl -L -s https://raw.githubusercontent.com/lmc999/RegionRestrictionCheck/main/check.sh)
bash <(curl -sSL "https://github.com/CoiaPrant/MediaUnlock_Test/raw/main/check.sh")
最后修改:2022 年 09 月 13 日
如果觉得我的文章对你有用,请随意赞赏