1. 程式人生 > >zabbix3.0升級到4.0

zabbix3.0升級到4.0

and nta fence sha frontend .com tps chart focus

升級步鄹:

3.0->3.2

1.停服務

service zabbix-server stop

2.備份配置文件

#cp /etc/zabbix/zabbix_server.conf /data/xyx/
#cp /etc/nginx/sites-enabled/zabbix.conf /data/xyx/
#cp /etc/nginx/sites-enabled/webchart_detail.conf /data/xyx/
#cp -R /usr/share/zabbix /data/xyx/
#rm -Rf /etc/apt/sources.list.d/zabbix.list

3.下載安裝包

#wget http://repo.zabbix.com/zabbix/3.2/ubuntu/pool/main/z/zabbix-release/zabbix-release_3.2-1+xenial_all.deb
#dpkg -i zabbix-release_3.2-1+xenial_all.deb

4.更新軟件包

#apt-get update
#apt-get install --only-upgrade zabbix-server-mysql zabbix-frontend-php

5.啟動服務,查看server日誌,查看數據庫升級情況

#service zabbix-server start

3.2->3.4

1.停服務

#service zabbix-server stop

2. 備份配置文件,刪除源

#rm -Rf /etc/apt/sources.list.d/zabbix.list

3.下載安裝包

#wget https://repo.zabbix.com/zabbix/3.4/ubuntu/pool/main/z/zabbix-release/zabbix-release_3.4-1+xenial_all.deb
#dpkg -i zabbix-release_3.4-1+xenial_all.deb

4.更新源和軟件包

#apt-get update
#apt-get install --only-upgrade zabbix-server-mysql zabbix-frontend-php

5.啟動服務,查看server日誌,查看數據庫升級情況

#service zabbix-server start

3.4->4.0

1.停服務

#service zabbix-server stop

2 備份配置文件,刪除源

#rm -Rf /etc/apt/sources.list.d/zabbix.list

3.下載安裝包

#wget https://repo.zabbix.com/zabbix/4.0/ubuntu/pool/main/z/zabbix-release/zabbix-release_4.0-2+xenial_all.deb
#dpkg -i zabbix-release_4.0-2+bionic_all.deb

4.更新源和軟件包

#apt-get update
#apt-get install --only-upgrade zabbix-server-mysql zabbix-frontend-php

5.啟動服務,查看server日誌,查看數據庫升級情況

#service zabbix-server start

zabbix3.0升級到4.0