sysbench 0.4.12安装

前提:mysql已安装完成,请参考http://www.cnblogs.com/lizhi221/p/6813907.html
 
安装依赖环境包:
yum install -y bzr
yum install -y libtool

sysbench-0.4.12安装:

 

#tar -zxvf sysbench-0.4.12.10.tar.gz
#cd sysbench-0.4.12.10/
#mkdir /usr/local/sysbench
#./configure --prefix=/usr/local/sysbench/ --with-mysql-includes=/usr/local/mysql/include/ --with-mysql-libs=/usr/local/mysql/lib/
#make
#make install
#cp  /usr/local/mysql/lib/libmysqlclient.so.20 /usr/lib64/
#/usr/local/sysbench/bin/sysbench --test=cpu --cpu-max-prime=200 run 测试cpu看sysbench是否安装成功

 注:若是使用1.0版本,需要在./configure之前先./autogen.sh

posted on 2017-05-24 16:43  lzfj  阅读(552)  评论(0编辑  收藏  举报

导航