1、https://github.com/akopytov/sysbench#rhelcentos获取
或是
wget https://github.com/akopytov/sysbench/archive/master.zip
2、解压
unzip master.zip
3、编译安装
确保已经安装了相关的依赖
yum -y install make automake libtool pkgconfig libaio-devel vim-common
./autogen.sh
./configure
make -j
make install
4、测试是否成功安装
sysbench --version