sysbench测试工具安装
1,下载地址
https://github.com/akopytov/sysbench/releases
2,解压和安装软件包
//依赖软件:
yum -y install make automake libtool pkgconfig libaio-devel
[root@db01 ~]# cd sysbench-1.0.16/
[root@db01 sysbench-1.0.16]# ./autogen.sh
[root@db01 sysbench-1.0.16]# ./configure --with-mysql-includes=/usr/local/mysql/include --with-mysql-libs=/usr/local/mysql/lib
[root@db01 sysbench-1.0.16]#make
[root@db01 sysbench-1.0.16]#make install
指定--with-mysql-includes and --with-mysql-libs 。
//查询方法:
[root@db01 ~]# /usr/local/mysql/bin/mysql_config
Usage: /usr/local/mysql/bin/mysql_config [OPTIONS]
Compiler: GNU 4.8.5
Options:
--cflags [-I/usr/local/mysql/include ]
--cxxflags [-I/usr/local/mysql/include ]
--include [-I/usr/local/mysql/include]
--libs [-L/usr/local/mysql/lib -lmysqlclient -lpthread -lm -lrt -lssl -lcrypto -ldl]
--libs_r [-L/usr/local/mysql/lib -lmysqlclient -lpthread -lm -lrt -lssl -lcrypto -ldl]
--plugindir [/usr/local/mysql/lib/plugin]
--socket [/usr/local/mysql/mysql.sock]
--port [0]
--version [5.7.28]
--libmysqld-libs [-L/usr/local/mysql/lib -lmysqld -lpthread -lm -lrt -lssl -lcrypto -ldl -lcrypt]
--variable=VAR VAR is one of:
pkgincludedir [/usr/local/mysql/include]
pkglibdir [/usr/local/mysql/lib]
plugindir [/usr/local/mysql/lib/plugin]
3,使用软件
[root@db01 sysbench-1.0.16]# export LD_LIBRARY_PATH=/usr/local/mysql/lib/
[root@db01 sysbench-1.0.16]# sysbench --version
sysbench 1.0.16
- 点赞
- 收藏
- 关注作者
评论(0)