前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >VPS测评常用指令

VPS测评常用指令

作者头像
用户2590762
发布2021-08-11 10:10:46
28.9K0
发布2021-08-11 10:10:46
举报
文章被收录于专栏:Q青之家

VPS回程路由一键测试脚本

代码语言:javascript
复制
wget -qO- git.io/besttrace | bash

LemonBench 综合性能测试工具脚本

快速测试

代码语言:javascript
复制
yum -y install wget
wget -O- https://ilemonra.in/LemonBenchIntl | bash -s fast
#或
apt-get install curl
curl -fsL https://ilemonra.in/LemonBenchIntl | bash -s fast 

完整测试

代码语言:javascript
复制
yum -y install wget
wget -O- https://ilemonra.in/LemonBenchIntl | bash -s full
#或
apt-get install curl
curl -fsL https://ilemonra.in/LemonBenchIntl | bash -s full

SuperBench

代码语言:javascript
复制
wget -qO- git.io/superbench.sh | bash

使用参数的方法

代码语言:javascript
复制
wget -qO- git.io/superbench.sh | bash -s info
wget -qO- git.io/superbench.sh | bash -s io
wget -qO- git.io/superbench.sh | bash -s speed
wget -qO- git.io/superbench.sh | bash -s fast
wget -qO- git.io/superbench.sh | bash -s share

VPS性能测试:CPU物理个数、内核、超线程、多核心

登录VPS界面,执行:

代码语言:javascript
复制
cat /proc/cpuinfo

查看逻辑CPU个数

代码语言:javascript
复制
cat /proc/cpuinfo |grep ‘physical id’ |sort |uniq

查看CPU型号

代码语言:javascript
复制
cat /proc/cpuinfo |grep ‘model name’ |sort |uniq

查看CPU内核数

代码语言:javascript
复制
cat /proc/cpuinfo |grep ‘cpu cores’ |sort |uniq

CPU线程

代码语言:javascript
复制
cat /proc/cpuinfo |grep ‘processor’

查看买的VPS内存信息

代码语言:javascript
复制
cat /proc/meminfo

测试VPS主机磁盘IO的性能可以执行以下两个命令

代码语言:javascript
复制
dd if=/dev/zero of=test bs=64k count=4k oflag=dsync
dd if=/dev/zero of=test bs=8k count=256k conv=fdatasync

SSD硬盘速度测试

代码语言:javascript
复制
yum install hdparm -y
fdisk -l
hdparm -t /dev/hda

版权属于:青城

本文链接:https://cloud.tencent.com/developer/article/1859258

转载时须注明出处及本声明

本文参与 腾讯云自媒体同步曝光计划,分享自作者个人站点/博客。
原始发表:2020-10-11,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体同步曝光计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档