当前位置: 首页 > news >正文

wordpress有声电台网站标题优化排名

wordpress有声电台,网站标题优化排名,网上电影网站怎么做的,王野天和葛优文章目录 背景解决方法 背景 今天在一台新服务器上安装nginx,在这个过程中需要安装相关依赖,在使用yum install命令时,发生了以下报错内容: Could not retrieve mirrorlist http://mirrorlist.centos.org/?release7&archx8…

文章目录

  • 背景
  • 解决方法

在这里插入图片描述

背景

今天在一台新服务器上安装nginx,在这个过程中需要安装相关依赖,在使用yum install命令时,发生了以下报错内容:

Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=os&infra=stock error was
14: curl#6 - "Could not resolve host: mirrorlist.centos.org; 未知的错误"One of the configured repositories failed (未知),and yum doesn't have enough cached data to continue. At this point the onlysafe thing yum can do is fail. There are a few ways to work "fix" this:1. Contact the upstream for the repository and get them to fix the problem.2. Reconfigure the baseurl/etc. for the repository, to point to a workingupstream. This is most often useful if you are using a newerdistribution release than is supported by the repository (and thepackages for the previous distribution release still work).3. Run the command with the repository temporarily disabledyum --disablerepo=<repoid> ...4. Disable the repository permanently, so yum won't use it by default. Yumwill then just ignore the repository until you permanently enable itagain or use --enablerepo for temporary usage:yum-config-manager --disable <repoid>orsubscription-manager repos --disable=<repoid>5. Configure the failing repository to be skipped, if it is unavailable.Note that yum will try to contact the repo. when it runs most commands,so will have to try and fail each time (and thus. yum will be be muchslower). If it is a very temporary problem though, this is often a nicecompromise:yum-config-manager --save --setopt=<repoid>.skip_if_unavailable=trueCannot find a valid baseurl for repo: base/7/x86_64

通过查看这个报错日志,关键在第一句:Could not retrieve mirrorlist http://mirrorlist.centos.org,无法访问该链接。

具体原因:mirrorlist.centos.org 不再被支持。

解决方法

使用sed命令批量替换CentOS镜像源。具体如下:

sudo sed -i s/mirror.centos.org/vault.centos.org/g /etc/yum.repos.d/*.repo
sudo sed -i s/^#.*baseurl=http/baseurl=https/g /etc/yum.repos.d/*.repo
sudo sed -i s/^mirrorlist=http/#mirrorlist=https/g /etc/yum.repos.d/*.repo

搞定。

http://www.zhongyajixie.com/news/55599.html

相关文章:

  • 网上接单做效果图哪个网站好武汉seo网站排名优化公司
  • 成都网站建设公司哪家专业网络工具
  • html5公司网站欣赏友情链接的获取途径有哪些
  • 网站seo推广排名深圳seo优化推广
  • 专门做餐饮运营的网站绍兴网站快速排名优化
  • 网站开发温州网站人多怎么优化
  • 网站建设页面要求百度荤seo公司
  • 大连做网站比较好的郑州网络推广平台有哪些
  • 哪里可以做公司网站chatgpt中文在线
  • 网站建设深圳公司seo与sem的区别与联系
  • 做微信视频的网站营销型企业网站
  • 滕州哪里有做网站的被逆冬seo课程欺骗了
  • 个人做医疗类网站违法?seo顾问服
  • 企业网络需求分析报告宁波优化系统
  • 网站建设需要掌握哪些知识网络营销推广的总结
  • 哪些网站做平面单页好看百度账号安全中心官网
  • 企业网站seo模板seo 0xu
  • 建站网站设计营销是什么
  • 阜宁做网站肇庆seo排名外包
  • 广州口碑好的网站建设定制b站在哪付费推广
  • 做外贸密封件的网站网站快速排名优化哪家好
  • 如何做网站建设为企业推广
  • 网站建设尺寸像素是多少钱百度指数官方
  • 有没有网站开发软件最权威的排行榜网站
  • 团购网站做二级域名2022最近比较火的营销事件
  • 江西营销型网站建设创建app平台
  • 网站开发公司怎么找客户百度seo最成功的优化
  • 全能网站模板百度sem竞价托管公司
  • 中国都有哪些网站百度客服电话4001056
  • 网站评估怎么做搜索引擎优化排名关键字广告