yum install mariadb-server mariadb –y
systemctl enable mariadb
systemctl restart mariadb
rpm -ivh http://repo.zabbix.com/zabbix/3.4/rhel/7/x86_64/zabbix-release-3.4-1.el7.centos.noarch.rpm
yum install zabbix-server-mysql zabbix-web-mysql -y
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 ‘zabbix‘;
Query OK, 0 rows affected (0.08 sec)
MariaDB [(none)]> exit
Bye
zcat /usr/share/doc/zabbix-server-mysql-3.4.8/create.sql.gz |mysql -uzabbix -pzabbix zabb
注意:/usr/share/doc/zabbix-server-mysql-xxx 以实际安装的版本为准
vim /etc/zabbix/zabbix_server.conf
124 # Default:
125 DBPassword=zabbix
systemctl enable zabbix-server
systemctl start zabbix-server
编辑Zabbix前端PHP配置,更改时区
vim /etc/httpd/conf.d/zabbix.conf
php_value date.timezone Asia/Shanghai
systemctl enable httpd
systemctl start httpd
浏览器访问,并进行安装
默认用户Admin 默认密码zabbix
yum install zabbix-agent –y
vim /etc/zabbix/zabbix_agentd.conf
修改IP地址server IP地址
97 Server=10.10.10.16
138 ServerActive=10.10.10.16
systemctl enable zabbix-agent.service
systemctl restart zabbix-agent.service
原文地址:http://blog.51cto.com/2168836/2113244