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