zabbix2升級zabbix3,zabbix2zabbix3

來源:互聯網
上載者:User

zabbix2升級zabbix3,zabbix2zabbix3

1.停服zabbix2,停服資料庫
/etc/init.d/zabbix_server stop
/etc/init.d/mysqld stop
2.物理備份資料庫
cd /var/lib/mysql/
tar -zcvf /tmp/data_zabbix2_20170306.tar.gz *
3.安裝依賴包
yum -y install net-snmp-devel libxml2-devel libcurl-devel php-gd mysql-devel gcc net-snmp-devel curl-devel perl-DBI php-mysql php-bcmath php-mbstring php-xml
4.下載zabbix3源碼包
wget https://jaist.dl.sourceforge.net/project/zabbix/ZABBIX%20Latest%20Stable/3.0.7/zabbix-3.0.7.tar.gz
5.解壓並安裝
tar -xf zabbix-3.0.7.tar.gz
cd zabbix-3.0.7
mkdir -p /usr/local/zabbix/
./configure --prefix=/usr/local/zabbix/ --enable-server --enable-agent --with-mysql --with-net-snmp --with-libcurl --with-libxml2
6.替換zabbix3啟動指令碼以及設定檔
cp misc/init.d/tru64/zabbix_agentd /etc/init.d/zabbix3_agentd
cp misc/init.d/tru64/zabbix_server /etc/init.d/zabbix3_server
sed -i 's/\(DAEMON=\/usr\/local\/\)\(sbin\/zabbix_server\)/\1zabbix\/\2/g' /etc/init.d/zabbix3_server
7.拷貝前端檔案
\cp /root/zabbix-3.0.7/frontends/php/* /var/www/html/zabbix3/ -rp
8.配置前端檔案
http://IP/zabbix3/setup.php
或者
cp /var/www/html/zabbix/conf/zabbix.conf.php /var/www/html/zabbix3/conf/zabbix.conf.php
9.啟動mysql
10.啟動zabbix3
/etc/init.d/zabbix3_server start
/etc/init.d/zabbix3_agentd start
11.查看zabbix_server日誌中資料庫的自動升級進度

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.