一、基础环境配置
1、关闭firewalld、关闭selinux
##关闭firewalld
systemctl stop firewalld
systemctl disabled firewalld
##关闭selinux
setenforce 0 && sed -i.bak 's/^SELINUX=.*/SELINUX=disabled/g' /etc/selinux/config
2、配置yum仓库
配置zabbix仓库
wget https://repo.zabbix.com/zabbix/5.0/rhel/7/x86_64/zabbix-release-5.0-1.el7.noarch.rpm
yum install zabbix-release-5.0-1.el7.noarch.rpm
##在/etc/yum.repos.d/中查看zabbix仓库的配置情况
[root@localhost opt]# cat /etc/yum.repos.d/zabbix.repo
[zabbix]
name=Zabbix Official Repository - $basearch
baseurl=http://repo.zabbix.com/zabbix/5.0/rhel/7/$basearch/
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-ZABBIX-A14FE591
[zabbix-frontend]
name=Zabbix Official Repository frontend - $basearch
baseurl=http://repo.zabbix.com/zabbix/5.0/rhel/7/$basearch/frontend
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-ZABBIX-A14FE591
[zabbix-debuginfo]
name=Zabbix Official Repository debuginfo - $basearch
baseurl

本文档详细介绍了在CentOS7上安装和配置Zabbix监控系统的过程,包括关闭firewalld和selinux,配置Zabbix和MySQL仓库,安装数据库和服务,设置Zabbix相关组件,创建数据库并导入数据,调整MySQL配置以提高性能,以及启动Zabbix服务器和agent。此外,还涉及到Zabbix前端的配置和启动,以及登录前端的默认凭证。
最低0.47元/天 解锁文章
2851

被折叠的 条评论
为什么被折叠?



