码迷,mamicode.com
首页 > 其他好文 > 详细

sysbench的安装与使用

时间:2015-05-12 15:27:30      阅读:101      评论:0      收藏:0      [点我收藏+]

标签:

1:查看环境

[root@localhost bin]# cat /etc/redhat-release 
CentOS release 6.4 (Final)

2:下载

http://down1.chinaunix.net/distfiles/sysbench-0.4.10.tar.gz

3:解压

 tar zxvf  sysbench-0.4.12.tar.gz

4:

yum install automake
yum install libtool
yum install zlib
yum install gcc
yum install mysql-devel
yum install  gcc glibc-devel  glibc-headers  glibc-kernheaders

5:

技术分享

6:

vi configure.ac

技术分享

# Checks for programs.
AC_PROG_CC
#AC_PROG_LIBTOOL
AC_PROG_RANLIB
AX_CHECK_DOCBOOK

  

./autogen.sh

./configure --prefix=/usr/local/sysbench > --with-mysql-includes=/usr/include/mysql > --with-mysql-libs=/usr/lib64/mysql
 

  

make
make install

  

./sysbench --test=oltp help

  

 

sysbench的安装与使用

标签:

原文地址:http://www.cnblogs.com/xiaoit/p/4497160.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!