zoukankan      html  css  js  c++  java
  • sysbench0.5 在 centos7下安装 (mysql-community-server)

    mysql-community-server 5.7

    // 先安装编译依赖环境

    $ sudo yum install gcc gcc-c++ automake make libtool mysql-community-devel

    $ cd /tmp && git clone https://github.com/akopytov/sysbench.git

    $ cd /tmp/sysbench && ./autogen.sh

    $ ./configure --prefix=/usr/local/sysbench-0.5 --with-mysql

    $ make

    $ make install

    $ cd /usr/local/sysbench-0.5/bin

    $ ./sysbench --test=oltp --oltp-table-size=1000000 --mysql-db=test --mysql-user=root --mysql-host=127.0.0.1 --mysql-password=123456 prepare

    $ ./sysbench --test=oltp --oltp-table-size=1000000 --mysql-db=test --mysql-user=root --mysql-host=127.0.0.1 --mysql-password=123456 --max-time=60 --oltp-read-only=on --max-requests=0 --num-threads=8 run

    $ ./sysbench --test=fileio --file-total-size=5G prepare

    $ ./sysbench --test=fileio --file-total-size=5G --file-test-mode=rndrw --init-rng=on --max-time=300 --max-requests=0 run

    $ ./sysbench --test=fileio --file-total-size=5G cleanup

  • 相关阅读:
    vscode安装使用
    文本相似度编辑距离
    lstm有浅入深
    去除数组对象中重复的对象
    ANGULAR :NGIF 的ELSE用法
    数组中去除重复的对象的简单方法
    自然数e的野史来历和计算方法
    VSCode
    Ubuntu
    Ubuntu
  • 原文地址:https://www.cnblogs.com/zergling9999/p/6132261.html
Copyright © 2011-2022 走看看