问题:
安装sysbench时报错。
[root@localhost ~]# yum install sysbench
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* base: mirrors.aliyun.com
* extras: mirrors.aliyun.com
* updates: mirrors.aliyun.com
No package sysbench available.
Error: Nothing to do
You have mail in /var/spool/mail/root
解决方法&步骤:
在终端执行yum list | grep sysbench,查找yum中是否有此安装包。
若有,则执行yum install sysbench
若没有,则替换yum源为epel源,替换方法如:centos7配置国内yum源
当前配成清华和阿里云这两个yum源都没有找到sysbench的安装包。