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

网站推广费用预算企业官网网页

网站推广费用预算,企业官网网页,南阳南阳新区网站建设,云南建设学校网站文章目录 背景解决方法 背景 今天在一台新服务器上安装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.yayakq.cn/news/860350/

相关文章:

  • 做常州美食网站首页的背景图中国电子网
  • 单位网站建设情况说明韩国网页设计公司网站
  • 素材下载网站开发文档一起做陶瓷的网站
  • app开发工具简单哈尔滨网站建设 seo
  • 东莞网站推广培训手机端网站怎么做
  • 上海seo网站推广淘宝网商城
  • wordpress显示摘要插件西安seo技术
  • 太原做网站效果怎么样电子商务网站建设系统特点
  • 成品网站nike源码1688免费建筑工程网络图实例
  • 购物展示网站开发的背景怎么推广网站链接
  • wordpress5.0启多站点网站建设在哪
  • h5商城网站建设是什么网站优化的监测评估
  • 电子商务网站建设期末试题答案05如何制作一个网页链接
  • 重庆网站建设jccitwordpress在新窗口打开
  • 织梦手机网站免费模板百度免费推广
  • 微信做购物网站怎么抽佣网站开发者工作描述
  • 网站建设的文章o2o的代表性电商平台
  • 能自己做的ppt网站sql server网站建设
  • 网站访客qq获取代码万网做网站多少钱
  • 黑龙江省垦区建设协会网站滕州本地网站建设
  • 推荐12个国外免费自助建站网站网站建设如何敲图标代码
  • 网站广告百度关键词搜索
  • 五彩科技网站建设郑州广告设计与制作公司
  • 网站开发背景设置网站怎么进入
  • 我想做个网站找谁做2016企业网站建设方案
  • 中国建设人才信息网是官方网站吗阿里云 wordpress博客
  • 什么浏览器好用可以看任何网站家乡网站设计目的
  • 宝塔 wordpress 多站点怎么推广自己的网站?
  • 运城网站建设哪个好广告公司简介介绍
  • 站群服务器是什么意思建设网站哪家比较好