zabbix2.4.7升级3.2.3

1.下载服务端

wget https://superb-sea2.dl.sourceforge.net/project/zabbix/ZABBIX%20Latest%20Stable/3.2.3/zabbix-3.2.3.tar.gz

1.2停止zabbix服务

/etc/init.d/zabbix_server stop 关闭server服务端
/etc/init.d/zabbix_agentd stop 关闭agent客户端

1.3备份数据库

mysqldump -u root -p***** -h IP地址 --opt --skip-lock-tables --flush-logs --database zabbix > /tmp/zabbix.sql

/etc/init.d/mysqld stop 关闭数据库

1.4备份zabbix相关文件

备份配置文件: mv /usr/local/zabbix/ /usr/local/zabbix.2.4.7

备份启动脚本:
mv /etc/init.d/zabbix_server /etc/init.d/zabbix_server.2.4.7
mv /etc/init.d/zabbix_agentd /etc/init.d/zabbix_agentd.2.4.7

备份zabbix前端文件:

mv /var/www/html/zabbix/ /var/www/html/zabbix.2.4.7

1.5编译安装

tar zxvf zabbix-3.2.3.tar.gz

cd zabbix-3.2.3

./configure --prefix=/usr/local/zabbix-3.2.3 --enable-server --with-mysql --with-net-snmp --with-libxml2 --with-libcurl --enable-proxy --enable-agent --enable-java --with-ldap

make install

创建软链

ln -s /usr/local/zabbix-3.2.3/ zabbix

2.客户端下载

http://www.zabbix.com/downloads/3.2.0/zabbix_agents_3.2.0.linux2_6.amd64.tar.gz

原文地址:https://www.cnblogs.com/zhanmeiliang/p/6382045.html