正在运行的zabbix版本:Zabbix3.0.27
准备升级到的zabbix版本:Zabbix 4.0.7
1、 停止服务
service zabbix-server stop
service zabbix-agent stop
service httpd stop
2、备份 zabbix 文件
mkdir /opt/zabbix-backup/
cp /etc/zabbix/zabbix_server.conf /opt/zabbix-backup/
cp /etc/httpd/conf.d/zabbix.conf /opt/zabbix-backup/
cp -R /usr/share/zabbix/ /opt/zabbix-backup/
cp -R /usr/share/doc/zabbix-* /opt/zabbix-backup/
3、升级zabbix源
rpm -Uvh https://repo.zabbix.com/zabbix/4.0/rhel/7/x86_64/zabbix-release-4.0-1.el7.noarch.rpm
4、升级zabbix
yum upgrade zabbix-server-mysql zabbix-web-mysql zabbix-agent zabbix-proxy-mysql
yum clean all
yum upgrade zabbix-server-mysql zabbix-web-mysql zabbix-agent
5、启动zabbix
service zabbix-server start
service zabbix-agent start
service httpd start
service zabbix-server start时,查看升级日志
tail -f /var/log/zabbix/zabbix_server.log