zabbix-non-supported | 951 B 00:00:00
zabbix/x86_64/primary_db | 18 kB 00:00:00
zabbix-non-supported/x86_64/primary | 1.6 kB 00:00:00
Loading mirror speeds from cached hostfile
* base: mirrors.aliyun.com
* epel: mirrors.neusoft.edu.cn
* extras: mirrors.aliyun.com
* updates: mirrors.aliyun.com
zabbix-non-supported 4/4
安装省略中间过程
已安装:
zabbix-server-mysql.x86_64 0:3.4.1-1.el7 zabbix-web-mysql.noarch 0:3.4.1-1.el7
作为依赖被安装:
OpenIPMI-libs.x86_64 0:2.0.19-15.el7 OpenIPMI-modalias.x86_64 0:2.0.19-15.el7 fping.x86_64 0:3.10-4.el7
httpd.x86_64 0:2.4.6-67.el7.centos.2 httpd-tools.x86_64 0:2.4.6-67.el7.centos.2 iksemel.x86_64 0:1.4-6.el7
libzip.x86_64 0:0.10.1-8.el7 mailcap.noarch 0:2.1.41-2.el7 php.x86_64 0:5.4.16-42.el7
php-bcmath.x86_64 0:5.4.16-42.el7 php-cli.x86_64 0:5.4.16-42.el7 php-common.x86_64 0:5.4.16-42.el7
php-gd.x86_64 0:5.4.16-42.el7 php-ldap.x86_64 0:5.4.16-42.el7 php-mbstring.x86_64 0:5.4.16-42.el7
php-mysql.x86_64 0:5.4.16-42.el7 php-pdo.x86_64 0:5.4.16-42.el7 php-xml.x86_64 0:5.4.16-42.el7
t1lib.x86_64 0:5.1.2-14.el7 unixODBC.x86_64 0:2.3.1-11.el7 zabbix-web.noarch 0:3.4.1-1.el7
完毕!
[root@linuxidc ~]#
创建数据库1 [root@linuxidc ~]# mysql 2 3 Welcome to the MariaDB monitor. Commands end with ; or \g. 4 5 Your MariaDB connection id is 2 6 7 Server version: 5.5.56-MariaDB MariaDB Server 8 9 10 11 Copyright (c) 2000, 2017, Oracle, MariaDB Corporation Ab and others. 12 13 14 15 Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. 16 17 18 19 MariaDB [(none)]> 20 21 MariaDB [(none)]> create database zabbix character set utf8 collate utf8_bin; 22 23 Query OK, 1 row affected (0.00 sec) 24 25 MariaDB [(none)]> grant all privileges on zabbix.* to zabbix@localhost identified by 'zabbix'; 26 27 Query OK, 0 rows affected (0.08 sec) 28 29 MariaDB [(none)]> exit 30 31 Bye
导入数据库[root@linuxidc ~]# zcat /usr/share/doc/zabbix-server-mysql-3.4.1/create.sql.gz |mysql -uzabbix -pzabbix zabbix
配置数据库用户及密码