<output id="qn6qe"></output>

    1. <output id="qn6qe"><tt id="qn6qe"></tt></output>
    2. <strike id="qn6qe"></strike>

      亚洲 日本 欧洲 欧美 视频,日韩中文字幕有码av,一本一道av中文字幕无码,国产线播放免费人成视频播放,人妻少妇偷人无码视频,日夜啪啪一区二区三区,国产尤物精品自在拍视频首页,久热这里只有精品12

      zabbix 從5.0升級到5.4

      Upgrade procedure

       
      1 停止zabbix-server服務 Stop Zabbix processes

      Stop Zabbix server to make sure that no new data is inserted into database.

      # systemctl stop zabbix-server

      If upgrading the proxy, stop proxy too.

      # systemctl stop zabbix-proxy
      It is no longer possible to start the upgraded server and have older, yet unupgraded proxies report data to a newer server. This approach, which was never recommended nor supported by Zabbix, now is officially disabled when upgrading to 5.0 (or later) from any version before 4.4, as the server will ignore data from unupgraded proxies.
      2 備份歷史數據庫 Back up the existing Zabbix database

      This is a very important step. Make sure that you have a backup of your database. It will help if the upgrade procedure fails (lack of disk space, power off, any unexpected problem).

      3 備份配置文件 Back up configuration files, PHP files and Zabbix binaries

      Make a backup copy of Zabbix binaries, configuration files and the PHP file directory.

      Configuration files:

      # mkdir /opt/zabbix-backup/
      # cp /etc/zabbix/zabbix_server.conf /opt/zabbix-backup/
      # cp /etc/httpd/conf.d/zabbix.conf  /opt/zabbix-backup/

      PHP files and Zabbix binaries:

      # cp -R /usr/share/zabbix/ /opt/zabbix-backup/
      # cp -R /usr/share/doc/zabbix-* /opt/zabbix-backup/

      Backup MySQL 

        

      #mysqldump -uroot -p  zabbix >20210830.sql

       

      4 升級zabbix repo源 Update repository configuration package

      To proceed with the upgrade your current repository package has to be updated.

      # rpm -Uvh https://repo.zabbix.com/zabbix/5.4/rhel/8/x86_64/zabbix-release-5.4-1.el8.noarch.rpm
      5 升級zabbix 程序 Upgrade Zabbix components

      To upgrade Zabbix components you may run something like:

      # yum upgrade zabbix-server-mysql zabbix-web-mysql zabbix-agent

      If using PostgreSQL, substitute mysql with pgsql in the command. If upgrading the proxy, substitute server with proxy in the command. If upgrading the agent 2, substitute zabbix-agent with zabbix-agent2 in the command.

      To upgrade the web frontend with Apache on RHEL 8 correctly, also run:

      # yum install zabbix-apache-conf 

      and make the necessary changes to this file.

      To upgrade the web frontend on RHEL 7 follow distribution-specific instructions (extra steps are required to install PHP 7.2 or newer).

      6 檢查組件配置參數 Review component configuration parameters

      See the upgrade notes for details on mandatory changes.

      7 啟動zabbix-server 服務 Start Zabbix processes

      Start the updated Zabbix components.

      # systemctl start zabbix-server
      # systemctl start zabbix-proxy
      # systemctl start zabbix-agent
      # systemctl start zabbix-agent2
      檢查狀態
      導入數據庫 Import sql

      需要先停止數據庫服務

      #msyql -uzabbix -p zabbix < 20210830.sql

       

      zabbix5.2版本升級到zabbix5.4版本后打開頁面報錯,報錯內容如下

      問題一

      Database error
      The frontend does not match Zabbix database. Current database version (mandatory/optional): 5010000/5010000. Required mandatory version: 5040000. Contact your system administrator.

       

      (圖片來自網絡)

      解決辦法:

      進入數據庫

       
      mysql> show databases;
      mysql> use zabbix;
      mysql> update dbversion set mandatory=5040000;
      mysql> flush privileges;
      


      重新打開web即可解決

       問題二

      zabbix-server 無法啟動,查看日志

      tail -f /var/log/zabbix/zabbix_server.log

       
       
      9332:20181010:174337.188 [Z3005] query failed: [1050] Table 'tag_filter' already exists [create table tag_filter (
      `tag_filterid` bigint unsigned not null,
      `usrgrpid` bigint unsigned not null,
      `groupid` bigint unsigned not null,
      `tag` varchar(255) default '' not null,
      `value` varchar(255) default '' not null,
      primary key (tag_filterid)
       

      Fix:

      Login mysql

      對log中提示的所有表都drop掉,直到提示upgrade 完成,這樣在瀏覽器上就可以正常打開和登陸zabbix

       
      use zabbix;
      drop table tag_filter;
      8 Clear web browser cookies and cache

      After the upgrade you may need to clear web browser cookies and web browser cache for the Zabbix web interface to work properly.

      posted @ 2021-09-01 17:39  希曼博客  閱讀(1799)  評論(0)    收藏  舉報
      主站蜘蛛池模板: 国产成人8X人网站视频| 久久精产国品一二三产品| 国产精品亚洲二区亚瑟| 深夜福利成人免费在线观看| 热久久这里只有精品99| 亚洲欧美综合中文| 国产成人无码aa片免费看| 亚洲精品成人久久av| 国产99精品成人午夜在线| 夜夜添无码试看一区二区三区| 中文字幕国产在线精品| 亚洲国产一区二区三区最新| 国产成人一区二区三区视频免费 | 国产99视频精品免费视频36| 亚洲加勒比久久88色综合| 日产日韩亚洲欧美综合下载| 中文字幕少妇人妻精品| 中文字幕熟妇人妻在线视频| 中文字幕人成无码免费视频| 中文字幕在线国产精品| 一二三四日本高清社区5| 亚洲暴爽av人人爽日日碰| 日韩少妇人妻vs中文字幕| 亚洲乱码日产精品bd在线看| 日韩精品成人一区二区三| 精品国产成人午夜福利| 成人精品久久一区二区三区| 最新精品国偷自产在线美女足| 亚洲人成网网址在线看| 于田县| 国产偷拍自拍视频在线观看| 久久精品第九区免费观看| 国产成人久久777777| 中文精品无码中文字幕无码专区 | 永丰县| 国产亚洲精品第一综合| 亚洲v欧美v国产v在线观看| 野花社区www视频日本| 亚洲最大福利视频网| 日韩人妻无码精品久久| 亚洲欧洲精品一区二区|