yum安装

1
2
3
4
问题问题This system is not registered with an entitlement server. You can use subscription-manager to register.[root@localhost yum.repos.d]# vi /etc/yum/pluginconf.d/subscription-manager.conf
 
[main]
#enabled=1

解决办法:将配置文件subscription-manager.conf中的enable注释掉

 

1
2
3
4
5
6
问题2:http://mirrors.aliyuncs.com/centos/7/os/x86_64/repodata/repomd.xml: [Errno 14] curl#6 - "Could not resolve host: mirrors.aliyuncs.com; Unknown error"
 
解决:没有开通外网
开通外网步奏:# Generated by NetworkManager
search zq.eastmoney.com.sh
nameserver 114.114.114.114

RedHat系Linux的网络配置是分别通过每个网卡的单独配置实现的,虽然也可以用ifconfig配置,但重启后会丢失。 相关的配置文件

  • /etc/hosts 配置主机名和IP地址的对应(在/etc/resolv.conf前生效)
  • /etc/sysconfig/network 配置主机名和网关
  • /etc/sysconfig/network-scripts/ifcfg-eth0 eth0的配置文件
  •  cat  /etc/resolv.conf 

      

  

1、查看linux上所有的yum包
# rpm -qa|grep yum

 

posted @   木棉花的漂泊  阅读(66)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· TypeScript + Deepseek 打造卜卦网站:技术与玄学的结合
· 阿里巴巴 QwQ-32B真的超越了 DeepSeek R-1吗?
· 【译】Visual Studio 中新的强大生产力特性
· 10年+ .NET Coder 心语 ── 封装的思维:从隐藏、稳定开始理解其本质意义
· 【设计模式】告别冗长if-else语句:使用策略模式优化代码结构
点击右上角即可分享
微信分享提示