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

四川省和城乡建设厅网站比wordpress_

四川省和城乡建设厅网站,比wordpress_,e2ee网站开发,活动策划书文章目录 背景解决方法 背景 今天在一台新服务器上安装nginx#xff0c;在这个过程中需要安装相关依赖#xff0c;在使用yum install命令时#xff0c;发生了以下报错内容#xff1a; Could not retrieve mirrorlist http://mirrorlist.centos.org/?release7archx8… 文章目录 背景解决方法 背景 今天在一台新服务器上安装nginx在这个过程中需要安装相关依赖在使用yum install命令时发生了以下报错内容 Could not retrieve mirrorlist http://mirrorlist.centos.org/?release7archx86_64repoosinfrastock error was 14: curl#6 - Could not resolve host: mirrorlist.centos.org; 未知的错误One of the configured repositories failed (未知),and yum doesnt 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 --disablereporepoid ...4. Disable the repository permanently, so yum wont 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 repoidorsubscription-manager repos --disablerepoid5. 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 --setoptrepoid.skip_if_unavailabletrueCannot 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/^#.*baseurlhttp/baseurlhttps/g /etc/yum.repos.d/*.repo sudo sed -i s/^mirrorlisthttp/#mirrorlisthttps/g /etc/yum.repos.d/*.repo搞定。
http://www.hkea.cn/news/14272554/

相关文章:

  • 学校建设网站费用申请报告网页制作源代码免费的
  • 网站后台数据分析怎么做WordPress主题虚拟资源
  • 网站幻灯片 字段网站建设企业邮箱
  • 免费建设物流网站wordpress博客站点
  • 嘉兴高端网站顺义便宜的建站公司
  • 网站建设程序都有哪些国内网站开发不用wordpress
  • 大型网站制作需要多少钱关键词优化一年多少钱
  • 网站可以做动画轮播吗wordpress农业模板
  • 体彩网站开发珠海市网站建设哪家好
  • 攀枝花网站怎么做seo做装修的推广网站有那种
  • 网站的营销方案国外著名的网站设计公司
  • 做阀门网站效果怎么样h5设计平台
  • 免费服装网站模板优舟网站建设
  • 装修网站cms做网站年入多少
  • 网站建设网站建设的网络北票网站建设
  • 长春微信网站建设wordpress恢复旧版
  • 高级网站开发培训价格iapp如何用网站做软件
  • 论坛网站在线生成空间登录
  • 网站制作公司 番禺建设网站公司怎么分工
  • 网站建设免备案免费空间品牌建设需要哪几层工作
  • 找个免费的网站这么难吗淘宝客网站模板购买
  • 沧州哪家做网站好网络媒体设计是什么
  • 淄博网站建设公司有多少家做网站pyton
  • wordpress 显示指定文章标题上海野猪seo
  • 南宁设计网站建设贵阳网站app制作
  • 虚拟服务器和如何创建网站嘉兴城乡建设局门户网站
  • 做网站 要域名 主机 还有啥保山企业网站建设
  • 离退休工作网站建设方案临沂做网站多少钱
  • 网站小程序制作公司浙江省工程建设协会网站
  • 网站解析查询网站关键词排名下降