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安裝:html

 

#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.shmysql

相關文章
相關標籤/搜索