yum install createrepo yum-utils -y
添加清华zabbix源
cat /etc/yum.repos.d/zabbix.repo
[zabbix]
name=zabbix - $basearch
baseurl=
enabled=1
gpgcheck=0
mkdir /root/zabbix5
yumdownloader --resolve --destdir /root/zabbix5 zabbix-server-mysql-5.0.0
createrepo /root/zabbix5
cd /root
tar zcvf zabbix5.tar.gz zabbix5/
将zabbix5.tar.gz复制到远程机器
cat /etc/yum.repos.d/zabbix.repo
[zabbix]
name=zabbix - $basearch
baseurl=file:///root/zabbix5
enabled=1
gpgcheck=0
只用zabbix源安装
yum install --disablerepo=\* --enablerepo=zabbix zabbix-server-mysql-5.0.0
阅读(1571) | 评论(0) | 转发(0) |