In tis tutorial how to upgrade zabbix 6.0 to 6.4 using ubuntu 22.04. This is very important for your system for upgrade zabbix server.
Step #01: Should be check your current all service version using below command.
root@zbx:~# lsb_release -a && ip r root@zbx:~# zabbix_server -V root@zbx:~# mysql -V root@zbx:~# php -v root@zbx:~# systemctl stop zabbix-server
Step #02: Create backup folder for all backup.
root@zbx:~# mkdir backup root@zbx:~# cp /etc/zabbix/zabbix_server.conf /root/backup root@zbx:~# cp /etc/zabbix/zabbix_agentd.conf /root/backup root@zbx:~# cp /etc/zabbix/web/zabbix.conf.php /root/backup root@zbx:~# mysqldump -u root -p zabbix > /root/backup/zabbix.sql
Then type your mysql root password for backup zabbix database.
Step #03: Download Zabbix 6.4 version repo using below command.
root@zbx:~# wget https://repo.zabbix.com/zabbix/6.4/ubuntu/pool/main/z/zabbix-release/zabbix-release_6.4-1+ubuntu22.04_all.deb root@zbx:~# dpkg -i zabbix-release_6.4-1+ubuntu22.04_all.deb root@zbx:~# apt-get update root@zbx:~# apt-get install --only-upgrade zabbix-server-mysql zabbix-agent zabbix-frontend-php
Now check zabbix server log using below command.
root@zbx:~# tail -f /var/log/zabbix/zabbix_server.log
Step #04: Copy old file from backup folder using below command.
root@zbx:~# cp /root/backup/zabbix_server.conf /etc/zabbix/ root@zbx:~# cp /root/backup/zabbix_agentd.conf /etc/zabbix/ root@zbx:~# cp /root/backup/zabbix.conf.php /etc/zabbix/web/
Restart all service using below command.
root@zbx:~# systemctl restart zabbix-server zabbix-agent nginx php8.1-fpm root@zbx:~# systemctl enable zabbix-server zabbix-agent nginx php8.1-fpm
Now check zabbix server log using below command.
root@zbx:~# tail -f /var/log/zabbix/zabbix_server.log
Now set global set function for properly upgrade database.
root@zbx:~# mysql -uroot -p
Then run below command for set global function for allow update database.
MariaDB [(none)]> set global log_bin_trust_function_creators = 1;
Then exit from mysql terminal and then check log file for upgrade database.
root@zbx:~# tail -f /var/log/zabbix/zabbix_server.log
Now set global set function.
root@zbx:~# mysql -uroot -p
Now set global setting as like below.
MariaDB [(none)]> set global log_bin_trust_function_creators = 0;
Now check zabbix server version using below command.
root@zbx:~# zabbix_server -V
Done
If you can any error so please see my video for clear concept.
The post How To Upgrade Zabbix 6.0 To 6.4 on Ubuntu 22.04 appeared first on TechnologyRSS.
NVIDIA JetPack 4 reached its end-of-life (EOL) in November 2024, marking the end of security…
This blog is contributed by Pushkar Kulkarni, a Software Engineer at Canonical. Building on the…
This blog is contributed by Vladimir Petko, a Software Engineer at Canonical. The release of…
The apt package manager is responsible for installing .deb packages on Ubuntu LTS (long-term support)…
Today we are announcing chiseled containers for OpenJRE 8, 17 and 21 (Open Java Runtime…
Java has long been the most popular language for software development in large enterprises, with…