背景: 用户反馈系统每个月大致会有1000次左右访问一个特定的ip,查询ip地址后 发现是yum源
dnf.log中显示定时调用dnf makecache --timer这个命令
这个命令会访问源,更新元数据
systemctl status dnf-makecache.service 这个服务调用dnf makecache --timer命令 但是这个服务没有启动
systemctl status dnf-makecache.timer 这个服务是个定时器 定时调用dnf-makecache.service这个服务 关闭dnf-makecache.timer这个服务即可
解决办法:
systemctl stop dnf-makecache.timer
systemctl disable dnf-makecache.timer