wget https://repo.zabbix.com/zabbix/7.0/ubuntu/pool/main/z/zabbix-release/zabbix-release_latest+ubuntu22.04_all.debdpkg -i zabbix-release_latest+ubuntu22.04_all.debapt-get updateapt-get install --only-upgrade zabbix-server-mysql zabbix-frontend-php zabbix-agentConfiguration file '/etc/apt/sources.list.d/zabbix.list' ==> Deleted (by you or by a script) since installation. ==> Package distributor has shipped an updated version. What would you like to do about it ? Your options are: Y or I : install the package maintainer's version # Y 或 I : 安装包维护者的版本 N or O : keep your currently-installed version # N 或 O : 保留当前已安装的版本 D : show the differences between the versions # D : 显示版本之间的差异 Z : start a shell to examine the situation # Z : 启动 shell 来检查情况 The default action is to keep your current version. *** zabbix.list (Y/I/N/O/D/Z) [default=N] ?建议选N保留配置
5、启动 Zabbix 进程
systemctl start zabbix-server systemctl start zabbix-proxy systemctl start zabbix-agent systemctl start zabbix-agent2一般到此处已经升级完成,但是此次版本升级连带着mysql数据也升级了,就会出现如下报错
tail -f /var/log/zabbix/zabbix_server.log发现有如下的报错信息:
query failed: [1419] You do not have the SUPER privilege and binary logging is enabled (you *might* want to use the less safe log_bin_trust_function_creators variable) [create trigger proxy_insert after insert on proxymysql> SHOW VARIABLES LIKE 'log_bin_trust_function_creators';mysql> SET GLOBAL log_bin_trust_function_creators = 1;systemctl restart zabbix-server.service