1.备份文件
/usr/local/etc/zabbix_server.conf
/usr/local/etc/zabbix_agentd.conf
/www/wwwroot/zabbix/conf/zabbix.conf.php
/www/wwwroot/zabbix/assets/fonts/msyh.ttf
/www/wwwroot/zabbix/include/defines.inc.php
2.安装
停止程序
/etc/init.d/zabbix_server stop
/etc/init.d/zabbix_agentd stop
下载解压安装
wget https://sourceforge.net/projects/zabbix/files/ZABBIX%20Latest%20Stable/4.4.3/zabbix-4.4.3.tar.gz
tar -zxvf zabbix-4.4.3.tar.gz
编译 ./configure –enable-server –enable-agent –with-mysql –enable-ipv6 –with-net-snmp –with-libcurl –with-libxml2
make install
检查
/usr/local/etc/zabbix_server.conf
/usr/local/etc/zabbix_agentd.conf
安装更新前端
cd frontends/php 注意5.0开始变为cd ui/ 前端目录在ui
cd ui/
\cp -a . /www/wwwroot/zabbix
开启程序
/etc/init.d/zabbix_server start
/etc/init.d/zabbix_agentd start
查看log
cat /tmp/zabbix_server.log
cat /tmp/zabbix_agentd.log
Upgrade between minor versions
When upgrading between minor versions of 4.4.x (for example from 4.4.1 to 4.4.3) it is required to execute the same actions for server/proxy/agent as during the upgrade between major versions. The only difference is that when upgrading between minor versions no changes to the database are made.
Upgrade from packages
yum安装的目录
/var/log/zabbix/zabbix_agentd.log
/etc/zabbix/zabbix_agentd.conf
systemctl stop zabbix-agent
rpm -Uvh https://repo.zabbix.com/zabbix/4.4/rhel/7/x86_64/zabbix-release-4.4-1.el7.noarch.rpm
Upgrade between minor versions
It is possible to upgrade between minor versions of 4.4.x (for example, from 4.4.1 to 4.4.3). Upgrading between minor versions is easy.
To execute Zabbix minor version upgrade it is required to run:
$ sudo yum upgrade 'zabbix-*'
To execute Zabbix server minor version upgrade run:
$ sudo yum upgrade 'zabbix-server-*'
To execute Zabbix agent minor version upgrade run:
$ sudo yum upgrade 'zabbix-agent-*'
Note that you may also use ‘update’ instead of ‘upgrade’ in these commands. While ‘upgrade’ will delete obsolete packages, ‘update’ will preserve them.
0 条评论