sysbench 安装

1,依赖包安装

rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm

yum install bzr

yum install -y automake

yum install -y libtool


2,下载sysbench

wget http://imysql.com/wp-content/uploads/2014/09/sysbench-0.4.12-1.1.tgz


3,   安装sysbench

tar -zxvf sysbench-0.4.12-1.1.tgz

./autogen.sh

./configure --with-mysql-includes=/root/mysql5.7/include --with-mysql-libs=/root/mysql5.7/lib && make

/********

--with-mysql-includes  --with-mysql-libs 为mysql的源码安装目录,如果没有,可以先下载源码,指定目录到下载位置

./configure 如果有错,执行2次就可以

**********/

你可能感兴趣的:(sysbench 安装)