安装了一个新的redhat 系统过后,遇到了“This system is not registered to Red Hat Subscription Management” ,大神们都是先检查yum 和 安装新的yum 和对应新的repo 文件,我follow那些方法之后仍然还有这样的问题,我将之前好的系统中 的repo 文件copy 到现在的/etc/yum.repos.d/文件夹下,没有解决这样的问题。
方法:
vim /etc/yum.conf
[main] gpgcheck=1 installonly_limit=3 clean_requirements_on_remove=True best=True skip_if_unavailable=False #添加代理 proxy=http://proxy-XXXX ~
后就解决了这个问题。感谢同事