zoukankan      html  css  js  c++  java
  • 安装特定版本 sysbench 以及安装时指定特定的mysql客户端

    step1:

    下载安装源码 https://github.com/akopytov/sysbench (git clone https://github.com/akopytov/sysbench.git)

    如果想安装特定版本的sysbench, git checkout branch-you-want-install

    eg:安装sysbench 0.5, git checkout 0.5, 执行完后可以通过git status 或者git branch查看是否成功的切入希望安装的分支

    step2:

    确认系统安装了相关的依赖,gcc , automake, m4等。 yum -y install  automake m4 libtool

    step3:

    安装好特定版本的mysql, 这个比较重要,具体参见另文详细过程

    step4:

    按照sysbench说明安装

    ./autogen.sh
    ./configure --with-mysql-libs=/mysql/lib/  --with-mysql-includes=/mysql/include/  //填写自定义的mysql安装lib和include路径
    make
    make install

    /etc/profile 添加环境变量
     export LD_LIBRARY_PATH=/mysql/lib
    source /etc/profile
    step5:
    sysbench --version 验证是否成功
  • 相关阅读:
    剑指offer【面试题10 :矩形覆盖】
    剑指offer【面试题3 :二维数组中的查找】
    GStreamer Tutorials
    CMake Tutorial
    python
    python
    python-线程、进程、协程
    python-类的继承
    python-操作缓存
    python-线程池
  • 原文地址:https://www.cnblogs.com/janey/p/sysbench.html
Copyright © 2011-2022 走看看