admin 管理员组

文章数量: 1086019


2024年4月15日发(作者:ascii码密码怎么设置)

sysbench是一个开源的、模块化的、跨平台的多线程性能测试工具,可以用来进行

CPU、内存、磁盘I/O、线程、数据库的性能测试。目前支持的数据库有MySQL、Oracle

和PostgreSQL。以下操作都将以支持MySQL数据库为例进行。

下载源码包

在/projects/sysbench/网站上下载,我下载到的源码包是

环境准备

我的系统是CentOS 5.5,在进行编译安装前需要先进性相关软件的安装和更新。

首先,安装和更新gcc,否则在编译安装时会报错误:configure: error: no acceptable

C compiler found in $PATH,安装命令为:yum install gcc。

其次,安装和更新libtool,否则在编译安装时会报类似错误:

../libtool: line 838: X--tag=CC: command not found

../libtool: line 871: libtool: ignoring unknown tag : command not found

../libtool: line 838: X--mode=link: command not found

../libtool: line 1004: *** Warning: inferring the mode of operation is

deprecated.: command not found

../libtool: line 1005: *** Future versions of Libtool will require --mode=MODE

be specified.: command not found

../libtool: line 2231: X-g: command not found

../libtool: line 2231: X-O2: command not found

../libtool: line 2231: X-rdynamic: command not found

../libtool: line 1951: X-L/usr/lib/mysql: No such file or directory

../libtool: line 2400: Xsysbench: command not found

Fatal server error:

Server is already active for display 0

If this server is no longer running, remove /tmp/.X0-lock

and start again.

../libtool: line 2412: Xsysbench: command not found

../libtool: line 2547: X-lmysqlclient_r: command not found

../libtool: line 2547: X-lz: command not found


本文标签: 安装 下载 性能 编译 密码