一樣是記錄一下做法,避免原生 repo: base, epel 總是給我不適合的 Sysbench 版本
確認系統資訊
[root@localhost ~]# cat /etc/redhat-release CentOS Linux release 7.8.2003 (Core)
然後把相關 repo resource 裝好後就可以安裝了
$ curl -s https://packagecloud.io/install/repositories/akopytov/sysbench/script.rpm.sh | bash $ yum -y install sysbench
確認 sysbench 版本
[root@localhost ~]# yum list installed | grep sysbench sysbench.x86_64 1.0.20-1.el7 @akopytov_sysbench
確認常用腳本路徑: /usr/share/sysbench/
[root@localhost ~]# ls -al /usr/share/sysbench/ 總計 68 drwxr-xr-x 3 root root 4096 5月 23 14:48 . drwxr-xr-x. 77 root root 4096 5月 23 14:48 .. -rwxr-xr-x 1 root root 1452 4月 24 12:04 bulk_insert.lua -rw-r--r-- 1 root root 14369 4月 24 12:04 oltp_common.lua -rwxr-xr-x 1 root root 1290 4月 24 12:04 oltp_delete.lua -rwxr-xr-x 1 root root 2415 4月 24 12:04 oltp_insert.lua -rwxr-xr-x 1 root root 1265 4月 24 12:04 oltp_point_select.lua -rwxr-xr-x 1 root root 1649 4月 24 12:04 oltp_read_only.lua -rwxr-xr-x 1 root root 1824 4月 24 12:04 oltp_read_write.lua -rwxr-xr-x 1 root root 1118 4月 24 12:04 oltp_update_index.lua -rwxr-xr-x 1 root root 1127 4月 24 12:04 oltp_update_non_index.lua -rwxr-xr-x 1 root root 1440 4月 24 12:04 oltp_write_only.lua -rwxr-xr-x 1 root root 1919 4月 24 12:04 select_random_points.lua -rwxr-xr-x 1 root root 2118 4月 24 12:04 select_random_ranges.lua drwxr-xr-x 4 root root 49 5月 23 14:48 tests
以上,安心使用
如果不習慣 yum repo: akopytov_sysbench 的話,
yum repo: percona-release 也可以幫的上忙