跟着黑马自学CentOS系统,安装mysql的时候出现问题,配置yum仓库中,安装mqsql80的yum库报错。
Retrieving https://dev.mysql.com/get/mysql80-community-release-el7-2.noarch.rpm
curl: (28) Operation timed out after 300289 milliseconds with 0 out of 0 bytes received
error: skipping https://dev.mysql.com/get/mysql80-community-release-el7-2.noarch.rpm - transfer failed
根据gpt给的答案,先测试了一下网络环境,还不能解决的情况下,选择尝试更换yum源。下载国内yum源配置文件到/etc/yum.repos.d/
阿里源: wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
清理yum缓存,并生成新的缓存:
yum clean all
yum makecache
更新yum源
yum update
漫长的等待...
还是无法加载,选择使用xshell从windows服务器下载后上传至centos。