Zabbix-1.8.10 升级到 2.0.1
今天升级了一下zabbix,记录了一下升级步骤,仅供参考,文章有不对的地方还请大家多指出
1、升级服务端安装程序
- # rm -rf /usr/local/zabbix
- # cd zabbix-2.0.1/
- # ./configure --prefix=/usr/local/zabbix --with-mysql --with-net-snmp --with-libcurl --enable-server --enable-agent
- # make
- # make install
- # /usr/local/zabbix/sbin/zabbix_server -c /usr/local/zabbix/etc/zabbix_server.conf
- # cat /usr/local/zabbix/etc/zabbix_server.conf
LogFile=/tmp/zabbix_server.log
DBHost=localhost
DBName=zabbix
DBUser=zabbix
DBPassword=zabbix
DBSocket=/var/lib/mysql/mysql.sock
2、升级数据库
- # cd zabbix-2.0.1/upgrades/dbpatches/2.0/mysql/
- # mysql -u root -p zabbix < patch.sql
3、升级PHP程序
- # mv /var/www/zabbix /var/www/zabbix_bak
- # cp -r zabbix-2.0.1/frontends/php /var/www/zabbix
点击“Next”
PHP扩展检测:
点击“Next”
配置数据库
点击“Next”
配置主机名和端口
点击“Next”
检测配置信息:
点击“Next”
生成配置文件:
点击“Next”
4、升级客户端安装程序
- # rm -rf /usr/local/zabbix
- # ./configure --prefix=/usr/local/zabbix --enable-agent
- # make
- # make install
- # /usr/local/zabbix/sbin/zabbix_agentd -c /usr/local/zabbix/etc/zabbix_agentd.conf
目录 返回
首页