需要安装collectd来监控资源。目前已完成的步骤:
yum install epel-release # this failed as pubilc key is not installed
yum install --nogpgcheck epel-release # failed with error
Transaction check error:
file /etc/rpm/macros.ghc-srpm from install of epel-release-6-8.noarch conflicts with file from package redhat-rpm-config-9.1.0-72.el7.noarch
yum install --nogpgcheck --skip-broken collectd # failed with error
Packages skipped because of dependency problems:
collectd-4.10.9-4.el6.x86_64 from epel
Error: Package: collectd-4.10.9-4.el6.x86_64 (epel)
Requires: libyajl.so.1()(64bit)
Error: Package: collectd-4.10.9-4.el6.x86_64 (epel)
Requires: libpython2.6.so.1.0()(64bit)
问题:我已经安装了 epel 存储库,由于冲突错误,我应该使用另一个存储库吗?
答案1
无法在 Rhel 7 上安装collectd
$ rpm -qa epel-release
epel-release-7-11.noarch
...所以请安装正确版本的 epel-release。你得到了 EL6 版本,epel-release-6-8.noarch ...(以及错误的collectd:collectd-4.10.9-4。埃尔6.x86_64 )。
epel-release
https://archive.fedoraproject.org/pub/epel/7/x86_64/Packages/e/epel-release-7-11.noarch.rpm
下载并安装 :
# cd Downloads/ && yum install ./epel-release-7-11.noarch.rpm
# yum install collectd
: 我有版本5.8.0-1.el7