本次实验环境采用CentOS7.1,第一步安装zabbix的软件源

[root@martin ~]#rpm -ivh http://repo.zabbix.com/zabbix/3.0/rhel/7/x86_64/zabbix-release-3.0-1.el7.noarch.rpm


安装zabbix相关软件

[root@martin ~]# yum install zabbix-server-mysql zabbix-web-mysql zabbix-agent mariadb-server –y


[root@martin ~]# systemctl start mariadb   启动数据库


创建zabbix数据库

MariaDB [(none)]> create database zabbix character set utf8 collate utf8_bin;


Query OK, 1 row affected (0.00 sec)


做相关授权

MariaDB [(none)]> grant all privileges on zabbix.* to zabbix@localhost identified by '123456';   


Query OK, 0 rows affected (0.00 sec)


[root@martin ~]# cd /usr/share/doc/zabbix-server-mysql-3.0.3/


导入zabbix数据库

[root@martin zabbix-server-mysql-3.0.3]# zcat create.sql.gz | mysql -uroot zabbix


[root@martin zabbix-server-mysql-3.0.3]#vim /etc/zabbix/zabbix_server.conf

编辑zabbix配置文件,配置如下参数,和上面创建数据库,授权用户名密码保持一致即可

DBHost=localhost

DBName=zabbix

DBUser=zabbix

DBPassword=123456


[root@martin ~]#systemctl start zabbix-server.service  启动zabbix服务


 [root@martin ~]#s/etc/httpd/conf.d/zabbix.conf  在Apache配置目录下配置如下参数


php_value max_execution_time 300

php_value memory_limit 128M

php_value post_max_size 16M

php_value upload_max_filesize 2M

php_value max_input_time 300

php_value always_populate_raw_post_data -1

php_value date.timezone Asia/Shanghai


[root@martin zabbix-server-mysql-3.0.3]#systemctl start httpd


http://172.16.80.139/zabbix/  输入地址访问zabbix

zabbix3.0安装指南_第1张图片

zabbix3.0安装指南_第2张图片

zabbix3.0安装指南_第3张图片

zabbix3.0安装指南_第4张图片

zabbix3.0安装指南_第5张图片


 Default username/password is Admin/zabbix.


zabbix3.0安装指南_第6张图片


zabbix3.0安装指南_第7张图片