ICode9

精准搜索请尝试: 精确搜索
  • OpenStack云平台部署(手动)2022-09-16 16:31:35

    一、基础环境准备 1、yum源配置 # 切换到yum目录 [root@controller ~]# cd /etc/yum.repos.d/ # 创建备份目录 [root@controller yum.repos.d]# mkdir repo.bak [root@controller yum.repos.d]# ls CentOS-Base.repo CentOS-fasttrack.repo CentOS-Vault.repo CentOS-CR.re

  • 搭建yum源2022-09-12 23:00:43

    实验任务 给centos7或者Windows2016搭建yum源     实验环境 一台windwos2016或者centos7     实验步骤 1.首先挂在光盘:     2.把/etc/yum.repos.d下面的文件备份到backup中:     3.修改yum的配置文件: vi  /etc/yum.repos.d/local.repo [yum] name=yum baseurl=file://

  • CentOS 7.6 配置yum源为aliyun2022-08-11 20:31:30

    1 ) 备份yum源的配置目录 cp /etc/yum.repos.d/ yum.repos.d.back 2 )下载阿里云的配置到目录中(这里会直接覆盖,不过步骤1已经有备份了,无所谓覆盖不覆盖了) wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo 3 )清空缓存 yum clean all

  • 批量更新仓库小工具2022-08-08 09:35:16

    #!/bin/bash ######################################################### # 功能:批量更新仓库小工具 # 描述:根据repos配置,强制同步远程仓库内容到本地 # tips1:本地修改以及非repos定义内容将被抹掉 # tips2:执行完成后会切回本地master分支 ####################################

  • CentOS切换源到华为云镜像站2022-08-07 08:31:27

    更新记录 转载请注明出处:https://www.cnblogs.com/cqpanda/p/16536148.html 2022年8月7日 发布。 2022年8月6日 从笔记迁移到博客。 1.备份配置文件 cp -a /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.bak 2.下载新的CentOS-Base.repo文件到/etc/yum

  • linux- 挂载本地iso,配置本地yum2022-08-06 17:02:47

      ------------------------------------ 关于centos8安装vm-tools: workstation部署centos8之后,不需要单独安装vm-tools,系统已自动安装: 验证: [root@centos8 iso]# rpm -qa | grep vm-tools open-vm-tools-10.3.10-3.el8.x86_64 open-vm-tools-desktop-10.3.10-3.el8.x86_64 [roo

  • linux切换yum源2022-08-01 18:36:22

    linux切换yum源 备份 mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup 下载新的CentOS-Base.repo 到/etc/yum.repos.d/ # 下载阿里云yum源 wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo # 163y

  • Centos7 切换 Alibaba Cloud Liunx2 操作系统2022-07-25 16:00:31

    Centos7 切换 Alibaba Cloud Liunx2 操作系统 切换须知 操作系统切换不可逆,且系统内的软件会重新安装,切换前请提前备份数据 环境准备 centos 7 系统能正常访问外网 配置DNS解析到114.114.114.114(最好在网卡配置处添加,因为后面的程序执行中会清除/etc/resolv.conf的文件)

  • Error: Cannot find a valid baseurl for repo: appstream2022-07-25 01:01:21

    大家都知道Centos8于2021年年底停止了服务,大家再在使用yum源安装时候,出现下面错误“错误:Failed to download metadata for repo ‘AppStream’: Cannot prepare internal mirrorlist: No URLs in mirrorlist” 1、进入yum的repos目录 cd /etc/yum.repos.d/ 复制 2、修改所有的Cen

  • centos 8.5 换源2022-07-07 18:02:49

    OMG centos8.5 官方不支持了   备份原repo:rename '.repo' '.repo.bak' /etc/yum.repos.d/*.repo下载最新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/rep

  • centos8安装Vscode2022-07-02 12:31:31

      原文出自: 如何在 CentOS 8 上安装 Visual Studio Code - 腾讯云开发者社区-腾讯云 (tencent.com) 这里实在不知道这个编辑怎么编辑用的vim 代替了(sudo nano /etc/yum.repos.d/vscode.repo) 汉化: (1条消息) VScode设置环境为中文_野生流水线工人的博客-CSDN博客

  • CentOS8使用putty安装MySQL时搜不到(无法下载)元数据,报Errors during downloading metadata for repository ‘epel‘:2022-06-29 09:03:26

    CentOS8使用putty安装MySQL时搜不到(无法下载)元数据, 报Errors during downloading metadata for repository 'epel': - Status code: 404 for http://archives.fedoraproject.org/pub/archive/epel/8/Everything/x86_64/repodata/repomd.xml等错误,具体如下:          这可能是

  • yum源学习2022-06-20 11:04:41

    yum源学习 光盘挂载 #神奇的光盘挂载目录 #CentOS [root@centos8 ~]#rpm -q autofs || yum -y install autofs [root@centos8 ~]#systemctl enable --now autofs #Ubuntu root@ubuntu2004:~# apt install autofs -y root@ubuntu2004:~# vim /etc/auto.master /misc /etc/auto.mi

  • centos问题解决方案汇总2022-06-18 19:02:50

    1. linux (CentOS 7)报错:yum 命令报错 “ There are no enabled repos ” 1)yum list可以查出数来,证明ISO系统镜像是关联了的且挂载成功: yum list   (2)yum repolist显示仓库的时候是0: yum repolist (3)总结原因:问题应该出在了.repo文件上了。 cd /etc/yum.repos.d 二、解决方法(1)查看是

  • Linux安装yum install lrzsz报错2022-06-09 16:38:30

    [root@itcast local]# yum install lrzszLoaded plugins: fastestmirror, refresh-packagekit, securitySetting up Install ProcessLoading mirror speeds from cached hostfileYumRepo Error: All mirror URLs are not using ftp, http[s] or file. Eg. Invalid release/rep

  • docker使用centos:latest镜像执行yum install失败2022-06-08 15:02:54

    现象 [root@torres nginx]# docker build -t torres/nginx:v1 . Sending build context to Docker daemon 1.044MB Error response from daemon: dockerfile parse error line 9: unknown instruction: && [root@torres nginx]# docker build -t torres/nginx:v1 . Sen

  • redhat9中配置yum仓库2022-05-31 18:03:55

      1、查看系统 [root@PC1 home]# cat /etc/redhat-release Red Hat Enterprise Linux release 9.0 (Plow)   2、测试yum仓库 [root@PC1 home]# yum install httpd Updating Subscription Management repositories. Unable to read consumer identity This system is not re

  • redhat8中配置yum仓库2022-05-30 23:01:59

      1、测试yum仓库 [root@localhost ~]# yum install httpd Updating Subscription Management repositories. Unable to read consumer identity This system is not registered with an entitlement server. You can use subscription-manager to register. Error: There are

  • Linux 本地yum搭建2022-05-28 00:33:37

    #!/bin/bash . /etc/init.d/functions # 定义ISO镜像位置 IsoPath=/root/CentOS-7-x86_64-DVD-1708.iso Time=$(date +%F).bak Yum(){ # 挂载镜像 mkdir /mnt/centos mount ${IsoPath} /mnt/centos # 备份 (mkdir /etc/yum.repos.d/${Time} mv /etc/yum.repos.d/* /etc/yum.rep

  • Loaded plugins: fastestmirror File contains no section headers. file: file:///etc/yum.repos.d/Cent2022-05-20 18:33:58

    装gcc老是找镜像失败 于是换yum源,然后提示报错 解决办法 删除原文件重新下载 删除原有的文件 # rm -f /etc/yum.repos.d/CentOS-Base.repo 重新下载, # wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo 清理缓存 # yum clean

  • Centos-挂载离线ISO做为本地源2022-05-13 14:33:26

       一、下载ISO,上传到服务器上     下载地址:http://mirrors.aliyun.com/centos/7/isos/x86_64/CentOS-7-x86_64-DVD-2009.iso    二、备份本地源   cd /etc/yum.repos.d mkdir bak mv *.repo bak/ && ll        三、挂载镜像 #挂载镜像 mkdir /mn

  • 亲测CentOS 8.2更换yum源报错Errors during downloading metadata for repository 'epel': - Status c2022-05-11 21:33:28

    重点 提一件拉胯的事:别去参考阿里和华为云官方镜像上面的解决办法,本人试了几遍,没luan用。拉胯!!!!!!!! 报错具体信息 Errors during downloading metadata for repository 'epel': - Status code: 404 for http://archives.fedoraproject.org/pub/archive/epel/8/Everything/x86_64/rep

  • CentOs 7 安装mysql-server 和libmysqlclient-dev2022-05-06 16:04:05

    安装从网上下载文件的wget命令 yum -y install wget 下载mysql的repo源 wget http://repo.mysql.com/mysql-community-release-el7-5.noarch.rpm 安装mysql-community-release-el7-5.noarch.rpm包 rpm -ivh mysql-community-release-el7-5.noarch.rpm 查看 会获得两个mysql的

  • 解决centos8不能使用yum源2022-05-01 10:02:21

    [root@mobanji /etc/yum.repos.d]#sudo sed -i -e "s|mirrorlist=|#mirrorlist=|g" /etc/yum.repos.d/CentOS-* [root@mobanji /etc/yum.repos.d]#sudo sed -i -e "s|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g" /etc/yum.rep

  • Centos6国内可用yum源2022-04-29 11:02:57

    目标: 由于centos已不再维护6.X版本,停止更新支持,同时官方也把yum源删除了,所以6.X版本必须更换源才可继续使用。 更新yum源为CentOS的Vault源 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 ht

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

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

ICode9版权所有