前言
sysbench是一款开源的多线程性能测试工具,可以执行 CPU/内存/线程/IO/数据库等方面的性能测试。
源码编译安装
1、安装依赖包
yum -y install gcc gcc-c++ autoconf automake libtool git
2、下载源码
git clone https://github.com/akopytov/sysbench.git
3、编译安装
cd sysbench/
./autogen.sh
./configure --without-mysql #如果需要测试mysql就去掉--without-mysql这个选项
make && make install
使用yum安装
sysbench在epel-release这个包里面,因此要先安装epel-release
yum -y install epel-release
yum -y install sysbench
总结
如果需要比较新的版本,可以直接使用git上面的源码进行编译。yum安装就比较方便了,省去编译的时间。
特别声明:以上内容(如有图片或视频亦包括在内)为自媒体平台“网易号”用户上传并发布,本平台仅提供信息存储服务。
Notice: The content above (including the pictures and videos if any) is uploaded and posted by a user of NetEase Hao, which is a social media platform and only provides information storage services.