ICode9

精准搜索请尝试: 精确搜索
  • 1、自建yum仓库,分别为网络源和本地源2022-04-18 16:35:54

    1、自建yum仓库,分别为网络源和本地源 一、本地源 备份文件 [21:55:01 root@CentOS8 /etc/yum.repos.d]#mkdir backup [21:55:08 root@CentOS8 /etc/yum.repos.d]#mv *.repo ./backup/ 1)挂载 mount /dev/cdrom /mnt/ 2)修改配置文件 vim /etc/yum.repos.d/local.repo [aaa] name=a

  • yum 更新yum源2022-04-09 15:04:25

    yum 更新yum源 # 1.做好备份,防止更新失败时切换回去 $ mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup $ mv /etc/yum.repos.d/CentOS* /etc/yum.repos.d/CentOS-Base.repo.backup # 2.进入yum源配置文件夹 $ cd /etc/yum.repos.d/ # 3.下载

  • 解决华为云CentOS8 yum的404问题2022-04-08 22:02:53

    命令: cd /etc/yum.repos.d tar -zcf bak20220408.tar.gz ./*.repo rm -rf ./*.repo wget -O /etc/yum.repos.d/CentOS-Base.repo https://repo.huaweicloud.com/repository/conf/CentOS-8-reg.repo 把 CentOS-Base.repo 里 的baseurl所有 $releasever 替换成 8-stream,然后执

  • Linux挂载iso镜像、配置本地yum源2022-04-06 18:32:20

    Linux挂载iso镜像、配置本地yum源 1、备份原yum源配置文件 [root@localhost ~]# ll /etc/yum.repos.d/ [root@localhost ~]# mkdir /etc/yum.repos.d.bak [root@localhost ~]# mv /etc/yum.repos.d/* /etc/yum.repos.d.bak/ [root@localhost ~]# ll /etc/yum.repos.d/ [root@local

  • 阿里云centos 8无法安装应用2022-03-30 17:03:57

    rename '.repo' '.repo.bak' /etc/yum.repos.d/*.repo wget https://mirrors.aliyun.com/repo/Centos-vault-8.5.2111.repo -O /etc/yum.repos.d/Centos-vault-8.5.2111.repowget https://mirrors.aliyun.com/repo/epel-archive-8.repo -O /etc/yum.repos

  • Centos8报错:Error: Failed to download metadata for repo 'base' 的解决办法2022-03-28 12:33:06

    Centos8报错:Error: Failed to download metadata for repo 'base' 查看阿里云官网上的说明:https://developer.aliyun.com/mirror/centos?spm=a2c6h.13651102.0.0.66c71b11q4E0g4   可以看到centos8官方源已下线,需切换centos-vault源 1、切换前先备份/etc/yum.repos.d目录下的Cen

  • 第五章、Linux网络服务之yum仓库2022-03-28 08:01:30

    目录一、yum仓库简介二、yum配置文件1yum主配置文件2日志文件三、yum命令详解1查询软件包命令2查询软件包组命令3yum安装升级4 软件卸载四、搭建yum仓库本地仓库http 搭建ftp搭建 一、yum仓库简介 yum是一个基于RPM包(是Red-Hat Package Manager红帽软件包管理器的缩写)构建的软件更

  • Kubernetes-kubectl命令 The connection to the server localhost:8080 was refused - did you specify the2022-03-19 15:33:13

      [root@docker001 yum.repos.d]# kubectl get pods --all-namespaces The connection to the server localhost:8080 was refused - did you specify the right host or port? [root@docker001 yum.repos.d]# ll /etc/kubernetes/admin.conf -rw------- 1 root root 5450 O

  • Linux如何切换yum的镜像源?2022-03-06 20:00:17

    有时候用yum - y install xxx 命令时会提示会出现网络错误,可通过****切换yum的镜像源来解决 1.1 centOS7的镜像源文件的目录默认都在该路径下:/etc/yum.repos.d/   cd /etc/yum.repos.d/ 1.2 备份原来的yum镜像源【如果出现错误可以恢复原配置】   cp /etc/yum.repos.d/CentOS-

  • centos6修改yum源2022-03-03 16:34:29

    记录一下,很多源都不好使了 备份 mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup mv /etc/yum.repos.d/epel.repo /etc/yum.repos.d/epel.repo.backup   下载 wget -O /etc/yum.repos.d/CentOS-Base.repo https://gitee.com/yeungchie/Cen

  • Redhat8建立本地yum源2022-03-02 16:30:19

    1、进入/etc/yum.repos.d目录,输入ls ,查看目录下文件 Redhat8下自动生成一个redhat.repo,不管他 2、查看/dev目录下是否存在sr0文件,此文件为光驱文件,创建挂载文件 如果光驱没有运行,在虚拟机-设置 中启动光驱,    3、挂载文件 mount   /dev/cdrom /mnt               

  • Linux初始化安装2022-03-02 16:03:52

    采用的系统配置: centos7.6,腾讯云服务器2核4G 1.安装国内yum源    1.1进入yum配置目录         cd /etc/yum.repos.d/    1.2yum安装vim、wget         yum  install -y vim  wget    1.3备份云服务器原来的yum源        mv /etc/yum.repos.d/CentOS-Base.repo

  • CentOS 8 EOL如何切换源?2022-02-23 12:03:18

    为啥centos8要换源? 当前时间是2022年2月22号 2021年12月31日CentOS 8操作系统版本结束了生命周期(EOL),Linux社区已不再维护该操作系统版本。后续新的服务器建议使用CentOS Stream,或者其他linux版本,按照社区规则,CentOS 8的源地址http://mirror.centos.org/centos/8/内容已移除,目前

  • docker使用centos:latest镜像报错2022-02-22 18:31:06

    原因 在2022年1月31日,CentOS团队从官方镜像中移除CentOS 8的所有包。   解决方案 1、使用vault.centos.org代替mirror.centos.org,但是vault.centos.org不稳定。 RUN sed -i -e "s|mirrorlist=|#mirrorlist=|g" /etc/yum.repos.d/CentOS-* && sed -i -e "s|#baseurl=http://mirro

  • CentOS7.2升级到7.32022-02-22 13:57:59

    前言 最近公司接手一个运维项目,需要将环境搭建起来,但现有的cento系统版本是7.2,而项目的最低要求是7.3,现记录一下升级到指定版本的过程。 过程 备份旧的版本仓库文件 [root@server-1 yum.repos.d] mkdir -p /etc/yum.repos.d/backup [root@server-1 yum.repos.d] mv /etc/yum.

  • 让你的yum加速起来2022-02-18 23:04:19

    转载于:博主链接 很多时候,linux从yum上安装源总是无比的慢,没办法,因为都是国外的。这里讲一个配置国内 yum (网易163)源的简单方式。 先拉取wget(如果已经安装,则跳过,可通过wget --help判断是否已安装wget) yum -y install wget 所处位置为根目录/,拉取国内yum的repo文件保存在根目录下(

  • CentOS8更换yum源后出现同步仓库缓存失败的问题2022-02-18 10:33:42

    1、错误情况更新yum时报错:     按照网上教程,更换阿里源、清华源都还是无法使用。可参考: centos8更换国内源(阿里源)_大山的博客-CSDN博客_centos8更换阿里源icon-default.png?t=M0H8https://blog.csdn.net/yds8903/article/details/106099901 2、原因分析 centos8项目官方已于2

  • centos8安装阿里云源和epel2022-02-15 14:01:40

    1. 备份mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup 2.下载wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-vault-8.5.2111.repo 3.生成缓存yum clean allyum makecache 4.安装epelyum install epel-rel

  • windows服务2022-02-09 13:31:43

    安装启动服务: cd C:\Windows\Microsoft.NET\Framework\v4.0.30319 InstallUtil.exe C:\Users\zjp\source\repos\LongYuElc\LongYuElc\bin\Debug\LongYuElc.exe net start longyuservice 卸载服务: InstallUtil.ex

  • 新年伊始我的centos8没法更新了2022-02-03 15:31:10

    22年春节后centos8竟然没法更新了,提示No URLs in mirrorlist如下: yum update Repository extras is listed more than once in the configuration Repository fasttrack is listed more than once in the configuration CentOS Linux 8 - AppStream 77 B/

  • 使用kubeadm安装k8s2022-02-01 17:31:45

    1.系统yum源配置 centos下载地址:推荐大家使用centos7.6以上版本。 http://mirrors.aliyun.com/centos/7/isos/x86_64/ 查看centos系统版本命令: cat /etc/centos-release 配置阿里云yum源 1.下载安装wget yum install -y wget 2.备份默认的yum mv /etc/yum.repos.d /etc

  • 【无标题】2022-01-31 19:02:21

    1、Apollo基本介绍 1、问题1 (1)原因1,是因为配置的是centos6的yum源,而centos6yum源已被官方移除,解决 cd /etc/yum.repos.d/ # 备份之前的源 mv CentOS-Base.repo CentOS-Base.repo-20211222.bak # 创建个目录,把/etc/yum.repos.d/目录下的所有文件保存到创建的目录,相当于

  • Centos7快速安装mongodb2022-01-28 11:03:21

    步骤1:创建/etc/yum.repos.d/mongodb-org-4.4.repo 文件,内容如下      命令如下: echo $'[mongodb-org-4.4] name=MongoDB Repository baseurl=https://repo.mongodb.org/yum/redhat/$releasever/mongodb-org/4.4/x86_64/ gpgcheck=1 enabled=1 gpgkey=https://www.mongodb.org

  • centos7.8使用yum安装mysql5.7图文结合,手把手教会你2022-01-26 15:03:15

    系统环境 操作系统:CentOS Linux release 7.8.2003 (Core) # 以下命令可查看 [root@localhost yum.repos.d]# cat /etc/redhat-release 开放3306端口 # 开启端口 [root@localhost ~]# firewall-cmd --zone=public --add-port=3306/tcp --permanent # 重启防火墙 [root@localhost ~]

  • Centos换源2022-01-23 18:03:00

      1. 备份 # 防止换源失败之后无法恢复 mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup 2. 下载新的 CentOS-Base.repo 到 /etc/yum.repos.d/ CentOS 6 curl -o /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-6

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有