zabbix老版本3.0.14迁移

发布于:2024-06-16 ⋅ 阅读:(26) ⋅ 点赞:(0)

由于之前zabbix版本过老,一直未能升级,现在一台老的服务器需要迁移,服务器较老,就不更新,先迁移数据,

下载地址:

Zabbix Official Repository

http://repo.zabbix.com/zabbix/3.0/rhel/7/x86_64/

我这里需要安装用到3.0.14版本。

下载了zabbix-server-mysql-3.0.14-1.el7.x86_64.rpm 点击安装后报错:

看来还要一一下载所有依赖包,

报错信息为:

[root@localhost xiaotang]# rpm -ivh zabbix-server-mysql-3.0.14-1.el7.x86_64.rpm
warning: zabbix-server-mysql-3.0.14-1.el7.x86_64.rpm: Header V4 DSA/SHA1 Signature, key ID 79ea5ed4: NOKEY
error: Failed dependencies:
        fping is needed by zabbix-server-mysql-3.0.14-1.el7.x86_64
        libOpenIPMI.so.0()(64bit) is needed by zabbix-server-mysql-3.0.14-1.el7.x86_64
        libOpenIPMIposix.so.0()(64bit) is needed by zabbix-server-mysql-3.0.14-1.el7.x86_64
        libc.so.6(GLIBC_2.14)(64bit) is needed by zabbix-server-mysql-3.0.14-1.el7.x86_64
        libc.so.6(GLIBC_2.17)(64bit) is needed by zabbix-server-mysql-3.0.14-1.el7.x86_64
        libiksemel.so.3()(64bit) is needed by zabbix-server-mysql-3.0.14-1.el7.x86_64
        libmysqlclient.so.18()(64bit) is needed by zabbix-server-mysql-3.0.14-1.el7.x86_64
        libmysqlclient.so.18(libmysqlclient_18)(64bit) is needed by zabbix-server-mysql-3.0.14-1.el7.x86_64
        libnetsnmp.so.31()(64bit) is needed by zabbix-server-mysql-3.0.14-1.el7.x86_64
        libodbc.so.2()(64bit) is needed by zabbix-server-mysql-3.0.14-1.el7.x86_64
        systemd is needed by zabbix-server-mysql-3.0.14-1.el7.x86_64
wget http://repo.zabbix.com/zabbix/3.0/rhel/7/x86_64/zabbix-server-mysql-3.0.14-1.el7.x86_64.rpm

wget http://repo.zabbix.com/zabbix/3.0/rhel/7/x86_64/zabbix-server-mysql-3.0.14-1.el7.x86_64.rpm

rpm -ihv http://mirrors.aliyun.com/zabbix/zabbix/3.0/rhel/6/x86_64/zabbix-release-3.0-1.el6.noarch.rpm
 yum install httpd zabbix zabbix-server zabbix-web zabbix-server-mysql zabbix-web-mysql mysql-server -y

rpm -ivh http://mirror.webtatic.com/yum/el6/latest.rpm
yum install php55w php55w-mysql php55w-common php55w-gd php55w-mbstring php55w-mcrypt php55w-devel php55w-xml php55w-bcmath -y
yum remove zabbix-server-pgsql -y
cp -R /usr/share/zabbix/ /var/www/html/
#备注:zabbix3.0必须要php5.4以上,因此需要安装特殊源,才能够安装php5.5

/etc/init.d/mysqld start

[root@localhost zabbix_server]# /etc/init.d/mysqld start
Initializing MySQL database:  Installing MySQL system tables...
OK
Filling help tables...
OK

To start mysqld at boot time you have to copy
support-files/mysql.server to the right place for your system

PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
To do so, start the server, then issue the following commands:

/usr/bin/mysqladmin -u root password 'new-password'
/usr/bin/mysqladmin -u root -h localhost.localdomain password 'new-password'

Alternatively you can run:
/usr/bin/mysql_secure_installation

which will also give you the option of removing the test
databases and anonymous user created by default.  This is
strongly recommended for production servers.

See the manual for more instructions.

You can start the MySQL daemon with:
cd /usr ; /usr/bin/mysqld_safe &

You can test the MySQL daemon with mysql-test-run.pl
cd /usr/mysql-test ; perl mysql-test-run.pl

Please report any problems with the /usr/bin/mysqlbug script!
[root@zabbix-server ~]# mysql
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 2
Server version: 5.1.73-log Source distribution

Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql> create database zabbix character set utf8 collate utf8_bin;
Query OK, 1 row affected (0.00 sec)

mysql> grant all on zabbix.* to zabbix@'localhost' identified by '111111';
Query OK, 0 rows affected (0.00 sec)

mysql> flush privileges;
Query OK, 0 rows affected (0.01 sec)

mysql> exit
Bye


网站公告

今日签到

点亮在社区的每一天
去签到