yum安装软件报错:Could not retrieve mirrorlist http://mirrorlist.centos.org/?relea

yum的源出现问题:

下载yum文件,替代原始yum源:

(1)网易yum源:

wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.163.com/.help/CentOS7-Base-163.repo

yum clean all //清除缓存

yum makecache //生成缓存

解析:wget -o,使用"-o"参数来指定一个文件名

(2)阿里云yum源:

wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo

yum clean all

yum makecache

此时发现系统未安装wget :

使用wget命令去下载应用时,提示" wget: command not found"。

rmp包安装

安装包下载地址wget安装包下载:地址https://mirrors.aliyun.com/centos/7/os/x86_64/Packages/https://mirrors.aliyun.com/centos/7/os/x86_64/Packages/

下载完传到centos服务器上:

#安装
rpm -ivh wget-1.14-18.el7_6.1.x86_64.rpm

#核验安装
rpm -qa|grep "wget"

相关推荐
未济4 天前
linux 配置环境变量
linux
傲世仙尊4 天前
目录即文件-Ext文件系统收尾篇
linux·c语言
_艾伦 耶格尔.4 天前
进程间通信
linux
Liuqy-054 天前
Linux IO编程——静态库、动态库
linux
彧azz4 天前
Linux 环境下 Redis 学习总结:数据类型、持久化、锁、事务、主从与缓存问题
linux·redis·笔记·学习·面试
-梅4 天前
linux(8) 软硬链接
linux·运维·服务器
AIgorithmGEEK4 天前
[Linux]线程三部曲(上):一个执行流的诞生——从操作系统一路拆到 pthread_create
linux·线程·pid
琥珀色糖5 天前
SimlpeHttp
linux·服务器
qeen875 天前
【Linux】操作系统之进程介绍(二)
linux·笔记·学习·进程
Zenova EdgeOS5 天前
Linux ss 工业边缘网络分析实战
linux·python·边缘计算·工业网关