1.关闭selinux,重启服务器
vim /etc/selinux/config
SELINUX=disabled
reboot
2.关闭防火墙
systemctl stop firewalld.service
3.导入源,安装zabbix包
rpm -ivh http://repo.zabbix.com/zabbix/3.2/rhel/7/x86_64/zabbix-release-3.2-1.el7.noarch.rpm
yum install -y zabbix-server-MysqL zabbix-web-MysqL
yum install -y zabbix-agent
rpm -ivh http://repo.MysqL.com/MysqL-community-release-el7-5.noarch.rpm
yum repolist enabled | grep "MysqL.*-community.*"
yum install -y MysqL-community-server
systemctl enable MysqLd
systemctl start MysqLd
5.创建zabbix数据库
MysqL -uroot -p
create database zabbix character set utf8 collate utf8_bin;
grant all privileges on zabbix.* to zabbix@localhost identified by 'zabbix';
exit
6.数据导入
cd /usr/share/doc/zabbix-server-MysqL-3.2.2/
zcat create.sql.gz | MysqL -uroot -p zabbix
yum install -y vim
vim /etc/zabbix/zabbix_server.conf
DBHost=localhost
DBName=zabbix
DBUser=zabbix
DBPassword=zabbix
8.启动zabbix-server服务,设置开机自启动
systemctl start zabbix-server
systemctl enable zabbix-server
9.修改时区
vim /etc/httpd/conf.d/zabbix.conf
PHP_value date.timezone Asia/Shanghai
10.启动apache服务,设置开机自启动
systemctl start httpd
systemctl enable httpd
11.访问配置地址
http://zuoshou.blog.51cto.com/2579903/1884286