zabbix 5.0 升级到 5.4

zabbix 5.0 升级到 5.4

systemctl stop zabbix-server
systemctl stop zabbix-agent.service

cp /etc/zabbix/zabbix_server.conf /opt/zabbix-backup/
cp /etc/nginx/conf.d/zabbix.conf /opt/zabbix-backup
cp -R /usr/share/doc/zabbix-* /opt/zabbix-backup
mysqldump -uroot -p  zabbix >20211111.sql
rm -rf /etc/apt/sources.list.d/zabbix.list

wget https://repo.zabbix.com/zabbix/5.4/debian/pool/main/z/zabbix-release/zabbix-release_5.4-1+debian10_all.deb
dpkg -i zabbix-release_5.4-1+debian10_all.deb
mv /etc/apt/sources.list.d/zabbix.list.dpkg-dist /etc/apt/sources.list.d/zabbix.list

Configuration 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
    N or O  : keep your currently-installed version
      D     : show the differences between the versions
      Z     : start a shell to examine the situation
 The default action is to keep your current version.
*** zabbix.list (Y/I/N/O/D/Z) [default=N] ? # 这里直接回车(N选项)

# 更新存储库信息。
apt-get update
# 升级 Zabbix 组件

apt-get install --only-upgrade zabbix-server-mysql zabbix-frontend-php zabbix-nginx-conf zabbix-agent

# 查看组件配置参数

7 开启 Zabbix 进程

 systemctl start zabbix-server.service
 systemctl start zabbix-agent.service

你可能感兴趣的:(zabbix 5.0 升级到 5.4)