环境 rhel7.3 server10
软件: zabbix3.4 php5.4-42
[root@server10 ~]# ls
3.4 php-bcmath-5.4.16-42.el7.x86_64.rpm php-mbstring-5.4.16-42.el7.x86_64.rpm
安装软件:
[root@server10 ~]# yum install php-*
[root@server10 3.4]# yum install fping-3.10-1.el7.x86_64.rpm iksemel-1.4-2.el7.centos.x86_64.rpm zabbix-agent-3.4.6-1.el7.x86_64.rpm zabbix-server-mysql-3.4.6-1.el7.x86_64.rpm zabbix-web-3.4.6-1.el7.noarch.rpm zabbix-web-mysql-3.4.6-1.el7.noarch.rpm
[root@server10 3.4]# yum install mariadb-server #数据库安装
[root@server10 3.4]# systemctl start mariadb
[root@server10 3.4]# mysql
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 'westos';
Query OK, 0 rows affected (0.00 sec)

MariaDB [(none)]> quit
[root@server10 3.4]# cd /usr/share/doc/zabbix-server-mysql-3.4.6/
[root@server10 zabbix-server-mysql-3.4.6]# zcat create.sql.gz |mysql zabbix #导入zabbix库
[root@server10 zabbix-server-mysql-3.4.6]# mysql
MariaDB [(none)]> use zabbix;
MariaDB [zabbix]> show tables;
[root@server10 ~]# cd /etc/zabbix/
[root@server10 zabbix]# ls
web zabbix_agentd.conf zabbix_agentd.d zabbix_server.conf
[root@server10 zabbix]# vim zabbix_server.conf
zabbix_第1张图片
zabbix
[root@server10 zabbix]# systemctl start zabbix-server
[root@server10 zabbix]# yum install httpd
[root@server10 zabbix]# vim /etc/httpd/conf.d/zabbix.conf
[root@server10 zabbix]# systemctl start httpd
[root@server10 zabbix]# systemctl start zabbix-agent
zabbix_第2张图片
重启httpd浏览器登陆
默认帐号Admin 密码为zabbix