CentOS 7 Zabbix 3.2 安装 1.0版

前端之家收集整理的这篇文章主要介绍了CentOS 7 Zabbix 3.2 安装 1.0版前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

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


4.安装MysqL、启动MysqL服务、设置开机自启动

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


7.修改配置文件

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://192.168.8.228/zabbix/


下一篇

http://zuoshou.blog.51cto.com/2579903/1884286

猜你在找的CentOS相关文章