1.报错截屏

2.设置网卡开机自动启动

针对这个问题首先要确认网卡是否已经启动了,CentOS7最开始安装完的时候网卡可能会是关闭的,需要自己自行开启。

确保自己使用的是root账号,若不是,请自行更换。

(1)进入/etc/sysconfig/network-scripts 目录。即输入命令 "cd /etc/sysconfig/network-scripts" ,使用命令 "ls -a" 可以查看该目录下的所有文件。

 (2)修改ifcfg-ens33的网卡配置文件(CentOS7修改了网卡命名规则,不再是eth0了,而是ifcfg-eno+数字)。输入命令 "vi ifcfg-ens33" 进入vi编辑器,按下"i"或者"insert"键进入编辑模式。

(3)将 "ONBOOT" 的值修改为 "yes" ,之后按esc退出编辑模式,输入 ":wq" 保存退出 

(4)重启系统或者重启网卡,输入命令 "reboot" 或 "service network restart"。

3.设置国内dns服务器

若已经开启了网卡还是存在该问题可以尝试配置下国内的dns。

openssl
传输层安全性/安全套接层及其加密库

(1)输入命令 "vi /etc/resolv.conf" 

(2)添加 "nameserver 114.114.114.114" 

(3)保存后,重启系统或者重启网卡,输入命令 "reboot" 或 "service network restart"。

4.修改CentOS-Base.repo中的地址

若上述方法还是无效可以尝试修改CentOS-Base.repo中的地址

(1)进入 "/etc/yum.repos.d" 。

(2)编辑 "vi CentOS-Base.repo" 。

(3)将所有的 "mirrorlist" 注释掉,将所有的 "baseurl" 取消注释。

 

(4)保存后,重启系统,输入命令 "reboot" 。 

5.问题解决

 文章来源:CentOS7 无法使用yum命令,无法更新解决方法_centos7更新yum源中间停止_zhanglong_longlong的博客-CSDN博客

阅读全文
AI总结
GitHub 加速计划 / ope / openssl
26
1
下载
传输层安全性/安全套接层及其加密库
最近提交(Master分支:5 个月前 )
a5f98e6d - Tolerate RSA PKCS#1 *certificate* signatures when the peer sigals include RSA PSS with the same digest. Now that we're more strict about not sending sigalgs that are out of protocol range, when the client supports TLS 1.3 only, we might refuse to return an RSA PKCS#1-signed cert. - Don't send TLS 1.3 sigalgs when requesting client certs from a TLS 1.2 client. Fixes: #1144 Fixes: #25277 Reviewed-by: Tim Hudson <tjh@openssl.org> Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from https://github.com/openssl/openssl/pull/27166) 13 小时前
ea776089 This is a 9 month old change, so I am not sure why it is only causing a compile issue now. Reported by David Makepeace Reviewed-by: Tim Hudson <tjh@openssl.org> Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from https://github.com/openssl/openssl/pull/27186) 13 小时前
Logo

旨在为数千万中国开发者提供一个无缝且高效的云端环境,以支持学习、使用和贡献开源项目。

更多推荐