我是靠谱客的博主 过时美女,这篇文章主要介绍CentOS8.2 64bit环境 安装memtier-benchmark 【2021.04.19测试可用】,现在分享给大家,希望可以做个参考。

网上教程参考了很多,但是安装过程都有坑,自己花了两天时间安装成功了,记录一下。

复制代码
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
1、准备工作 ## 安装编译所需的工具 yum install -y autoconf yum install -y automake yum install -y make yum install -y gcc-c++ yum install -y git dnf config-manager --set-enabled PowerTools #启用PowerTools存储库的方法 ## 安装需要的依赖库 yum install -y pcre-devel yum install -y zlib-devel yum install -y libmemcached-devel yum install -y openssl-devel 2、安装libevent库 yum install -y libevent-devel 3、下载、编译、安装memtier_benchmark的库 mkdir /env #根目录下创建文件夹,用于下载memtier_benchmark cd /env git clone https://github.com/RedisLabs/memtier_benchmark.git #下载memtier_benchmark源码 cd memtier_benchmark #进入源码目录 autoreconf -ivf ./configure make #编译生成可执行文件memtier_benchmark make install #安装到系统中 4、运行帮助命令查看是否安装成功 memtier_benchmark --help

测试memtier-benchmark

复制代码
1
2
3
./memtier_benchmark -s {IP} -c {connect_number} -t 4 -d {datasize} --ratio={SET:GET Ratio} --select-db={db_index} --test-time={SECONDS}

参考

1.安装memtier-benchmark

https://cloud.tencent.com/developer/article/1759907 部分参考

2.测试命令

https://help.aliyun.com/document_detail/100436.htm?spm=a2c4g.11186623.2.4.5a2c230coc8kb0#concept-esn-2tx-dgb 参考阿里云测试可用

http://ghoulich.xninja.org/2016/12/11/how-to-use-memtier-benchmark-to-measure-redis-performance/ 参考命令

最后

以上就是过时美女最近收集整理的关于CentOS8.2 64bit环境 安装memtier-benchmark 【2021.04.19测试可用】的全部内容,更多相关CentOS8.2内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(47)

评论列表共有 0 条评论

立即
投稿
返回
顶部