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

三网合一网站建设计划做网站的公司前三名

三网合一网站建设计划,做网站的公司前三名,互联网营销师含金量,西安网阔云信息科技有限公司CentOS7执行yum命令报错 引更新yum源备份原有源创建新的源文件清理并重建缓存 引 CentOS 7 系统无法连接到 CentOS 的官方镜像站点。这通常是由于网络问题或 CentOS 7 已停止维护导致的(2024年6月30日后 CentOS 7 已进入 EOL) 报错明细: 已…

CentOS7执行yum命令报错

  • 更新yum源
    • 备份原有源
    • 创建新的源文件
    • 清理并重建缓存

CentOS 7 系统无法连接到 CentOS 的官方镜像站点。这通常是由于网络问题或 CentOS 7 已停止维护导致的(2024年6月30日后 CentOS 7 已进入 EOL)

报错明细:

已加载插件:fastestmirror
Determining fastest mirrors
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 only
safe 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 working
upstream. This is most often useful if you are using a newer
distribution release than is supported by the repository (and the
packages for the previous distribution release still work).
3. Run the command with the repository temporarily disabled
yum --disablerepo= …
4. Disable the repository permanently, so yum won’t use it by default. Yum
will then just ignore the repository until you permanently enable it
again or use --enablerepo for temporary usage:
yum-config-manager --disable
or
subscription-manager repos --disable=
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 much
slower). If it is a very temporary problem though, this is often a nice
compromise:
yum-config-manager --save --setopt=.skip_if_unavailable=true
Cannot find a valid baseurl for repo: base/7/x86_64

更新yum源

备份原有源

mkdir -p /etc/yum.repos.d/backup
mv /etc/yum.repos.d/CentOS-* /etc/yum.repos.d/backup/

创建新的源文件

cat > /etc/yum.repos.d/CentOS-Base.repo <<'EOF'
[base]
name=CentOS-7 - Base
baseurl=https://vault.centos.org/7.9.2009/os/x86_64/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
enabled=1[updates]
name=CentOS-7 - Updates
baseurl=https://vault.centos.org/7.9.2009/updates/x86_64/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
enabled=1[extras]
name=CentOS-7 - Extras
baseurl=https://vault.centos.org/7.9.2009/extras/x86_64/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
enabled=1
EOF

清理并重建缓存

yum clean all
yum makecache
http://www.dtcms.com/a/488835.html

相关文章:

  • 西宁网站搭建网站导航网
  • 濮阳建站公司哪个好可以做英语阅读理解的网站
  • 给你一个网站你怎么做的事业单位网站后台建设方案
  • 杭州网络公司做网站报价网页设计怎么赚钱
  • 专业外包网站建设公司排名南联网站建设公司
  • 余姚专业网站建设公司网站开发和网页上传
  • 深圳那个网站建设微信二次开发
  • 如何让别人看到自己做的网站揭阳智能模板建站
  • 化工网站源码电脑网站策划书
  • 莱西网站建设哪家好网片生产厂家
  • 如何建立网站的步骤鹤壁市城乡一体化示范区范围
  • 商丘做网站优化网站与微信区别
  • 商标局网站可以做变更吗网站路径优化怎么做
  • 网站的控制面板坪山公司网站建设
  • 网站管理服务顺德互动交流网站
  • 如何修改网站模版淘宝网站建设代码
  • 史志办干地情网站建设禁用wordpress插件更新
  • 618酒类网站源码做动画的动作库网站
  • 饰品行业网站开发宝安网站设计公司
  • android 移动网站开发详解wordpress京东客系统
  • 盐城做企业网站公司网站开发所需要的的环境
  • 西安网站设计试听小羚羊网站怎么建设
  • 做物流网站电话号码wordpress 登录很慢
  • lwip在stm32上做网站淘宝客网站空间
  • 网站建设需要会什么软件有哪些方面做策划需要进的网站
  • 学校部门网站的建设wordpress自动采集外链
  • 上海响应式网站建设公司网站备案信息是什么
  • 合肥做公司网站一般多少钱整套网站模板
  • 自己家开了一家装修公司怎么做装修网站数字创意设计包括哪些案例
  • 互动创意网站群晖wordpress默认地址