获取地址:https://github.com/akopytov/sysbench
例如:git clone https://github.com/akopytov/sysbench.git
系统:centos6.5 percona-mysql-56
配置mysql库环境,查询自己的系统,默认库环境:mysql-libs
本人使用percona牌儿数据库,需要替换 mysql-libs,参考如下:
获取地址: https://www.percona.com/downloads/community/shared-compat/
或者 安装官方源:yum install http://www.percona.com/downloads/percona-release/redhat/0.1-3/percona-release-0.1-3.noarch.rpm
yum install Percona-Server-shared-compat Percona-Server-shared-56
注:提示替换 mysql-libs ,确认。
安装sysbench:
./autogen.sh
./configure --with-mysql-libs=/usr/lib64
make
make install
其他参考: http://downloads.mysql.com/archives/community/
获取版本:.PLATFORM.CPU.rpm