注:需提前按照zabbix6.0官方要求升级数据库
1.备份配置文件
cp /itops/zabbix/etc/zabbix_server.conf /tmp
2.安装编译zabbix所需软件包
yum -y install java-devel zlib libpthread pcre* ipmitool curl-devel gnutls libcurl-devel perl-DBI libdbi-dbd-mysql gcc gcc++ make libxml2 libxml2-devel libssh2-devel freetds telnet nmap mysql-connector-odbc libevent-devel unixODBC-devel OpenIPMI-devel
3.编译zabbix 6.0
(1)解压编译包
下载地址:https://cdn.zabbix.com/zabbix/sources/stable/6.0/zabbix-6.0.6.tar.gz
tar zxvf zabbix-6.0.6.tar.gz
(2)编译zabbix 6.0
cd zabbix-6.0.6
./configure --prefix=/itops/zabbix --enable-server --enable-agent --with-postgresql=/opt/postgresql/bin/pg_config --with-net-snmp=/itops/net-snmp/bin/net-snmp-config --with-libcurl --with-libxml2 --with-unixodbc --with-openipmi --enable-ipv6 --enable-java --with-openssl --with-ssh2 --with-iconv --with-iconv-include --with-iconv-lib --with-libpcre --with-libevent --with-zlib --with-zlib-include --with-zlib-lib --with-libpthread && make
4.关闭相关服务进程后覆盖安装
service zabbix_server stop
make install
5.修改新安装zabbix路径所属用户、组
chown -R itops.itops /itops/zabbix/
6.启动zabbix
service zabbix_server start
7.观察日志,待更新进度达到100%即完成更新
tail -f /itops/zabbix/logs/zabbix_server.log
错误信息