问题1:
[root@localhost yum.repos.d]# yum clean all
已加载插件:fastestmirror, product-id, search-disabled-repos, subscription-manager
This system is not registered with an entitlement server. You can use subscription-manager to register.
/var/run/yum.pid 已被锁定,PID 为 19589 的另一个程序正在运行。
Another app is currently holding the yum lock; waiting for it to exit...
另一个应用程序是:yum
内存: 30 M RSS (477 MB VSZ)
已启动: Wed Dec 22 11:04:44 2021 - 52:26之前
状态 :跟踪/停止,进程ID:19589
Another app is currently holding the yum lock; waiting for it to exit...
另一个应用程序是:yum
内存: 30 M RSS (477 MB VSZ)
已启动: Wed Dec 22 11:04:44 2021 - 52:28之前
状态 :跟踪/停止,进程ID:19589
^Z
[2]+ 已停止 yum clean all
解决办法
rm -f /var/run/yum.pid
问题2
[root@localhost /]# yum install zabbix-server-mysql zabbix-agent
已加载插件:langpacks, product-id, search-disabled-repos, subscription-manager
This system is not registered with an entitlement server. You can use subscription-manager to register.
local | 4.3 kB 00:00:00
http://repo.zabbix.com/zabbix/5.0/rhel/7/x86_64/repodata/repomd.xml: [Errno 12] Timeout on http://repo.zabbix.com/zabbix/5.0/rhel/7/x86_64/repodata/repomd.xml: (28, 'Resolving timed out after 30012 milliseconds')
正在尝试其它镜像。
^Z
[1]+ 已停止 yum install zabbix-server-mysql zabbix-agent
解决办法
重新配置DNS
[root@localhost /]# vim /etc/resolv.conf
[root@localhost /]# cat /etc/resolv.conf
; generated by /usr/sbin/dhclient-script
search localdomain
nameserver 114.114.114.114
nameserver 192.168.1.1
问题3
[root@localhost yum.repos.d]# yum clean all
已加载插件:langpacks, product-id, search-disabled-repos, subscription-manager
This system is not registered with an entitlement server. You can use subscription-manager to register.
正在清理软件源: local
解决办法
[root@localhost /]# vim /etc/yum/pluginconf.d/subscription-manager.conf
[main]
enabled=0