1.安装zabbix

rpm -ivh http://repo.zabbix.com/zabbix/3.2/rhel/7/x86_64/zabbix-release-3.2-1.el7.noarch.rpm
yum install zabbix-server-mysql zabbix-web-mysql zabbix-agent -y

2.安装mysql数据库

rpm -Uvh http://dev.mysql.com/get/mysql-community-release-el7-5.noarch.rpm
yum -y install mysql-community-server
systemctl start mysqld.service
mysqladmin -uroot password test123

3.创建初始数据库

create database zabbix character set utf8 collate utf8_bin;
grant all on zabbix.* to zabbix@'localhost' identified by '123456';
exit

4.修改PHP时区设置

sed -i 's@# php_value date.timezone Europe/Riga@php_value date.timezone Asia/Shanghai@g' /etc/httpd/conf.d/zabbix.conf

5.导入数据

cd /usr/share/doc/zabbix-server-mysql-3.0.13/
ls -l
zcat create.sql.gz |mysql -uzabbix -p123456 zabbix

6.Zabbix服务器的数据库配置

#在zabbix_server.conf中编辑服务器主机,名称,用户和密码,如下所示,其中DBPassword是您设置的创建初始数据库的密码:
vim /etc/zabbix/zabbix_server.conf
DBHost = localhost
DBName = zabbix
DBUser = zabbix
DBPassword = <password>

#启动Zabbix服务器进程
systemctl start zabbix-server
systemctl enable zabbix-server

#重启apache web 服务器
systemctl start httpd

7.安装zabbix

访问地址:IP/zabbix/setup.php

8.Web界面配置

    1 . 初始界面:

Centos 7 快速安装zabbix3

     2 . PHP各依赖包检测:

Centos 7 快速安装zabbix3

    3 . 配置数据库连接信息:

Centos 7 快速安装zabbix3

    4 . zabbix配置信息:

Centos 7 快速安装zabbix3

    5 . 信息汇总显示:

Centos 7 快速安装zabbix3

    6 . 安装install:

Centos 7 快速安装zabbix3

    7 . 登录zabbix:

Centos 7 快速安装zabbix3

    8 . 控制台界面:

Centos 7 快速安装zabbix3

    9 . 设置中文语言:

Centos 7 快速安装zabbix3

    end!到这一步zabbix安装完毕~更多见后分享!更多交流添加QQ:2650253136