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 如果有錯此蜈,執(zhí)行2次就可以
**********/