安装步骤:

参见官网

SRE实战 互联网时代守护先锋,助力企业售后服务体系运筹帷幄!一键直达领取阿里云限量特价优惠。

CentOS 会报以下错误:

Error downloading packages:

  dotnet-runtime-2.2-2.2.4-1.x86_64: [Errno 256] No more mirrors to try.

解决办法

  1. yum clean all
  2. yum makecache

 

可以为 CentOS 设置阿里镜像:

1. 备份原来的yum源 sudo cp /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.bak 2.设置aliyun的yum源 sudo wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo 3.添加EPEL源 EPEL(http://fedoraproject.org/wiki/EPEL)是由 Fedora 社区打造,为 RHEL 及衍生发行版如 CentOS、Scientific Linux 等提供高质量软件包的项目。装上 EPEL后,可以像在 Fedora 上一样,可以通过 yum install package-name,安装更多软件。 sudo wget -P /etc/yum.repos.d/ http://mirrors.aliyun.com/repo/epel-7.repo 4.清理缓存并生成新的缓存 sudo yum clean all 
sudo yum makecache 

 

扫码关注我们
微信号:SRE实战
拒绝背锅 运筹帷幄