Home  >  Article  >  Database  >  sysbench-0.4.12编译安装和CPU测试例子分享_MySQL

sysbench-0.4.12编译安装和CPU测试例子分享_MySQL

WBOY
WBOYOriginal
2016-06-01 13:06:191151browse

一、获取安装包

最近的版本为0.4.12,下载地址:http://sourceforge.net/projects/sysbench/

二、编译安装

我的环境为RHEL6.2 + MySQL 5.6.16,搭建参考上两篇文章>>,安装步骤如下:
复制代码 代码如下:
[root@beanvm ~]# tar -xvf sysbench-0.4.12.tar.gz
[root@beanvm ~]# cd sysbench-0.4.12
[root@beanvm sysbench-0.4.12]# ./configure --with-mysql-includes=/usr/local/mysql/include --with-mysql-libs=/usr/local/mysql/lib && make && make install

因为我的MySQL是编译安装的,所以上面需要给出MySQL的库文件位置(对应―with―mysql-includes和

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn