一、安装前准备(准备yum源)
1、下载zabbix的yum源的文件(从清华源下载,一个rpm包,需要进行安装);
[[email protected] yum.repos.d]# wget https://mirrors.tuna.tsinghua.edu.cn/zabbix/zabbix/4.0/rhel/7/x86_64/zabbix-release-4.0-2.el7.noarch.rpm --no-check-certificate
2、安装zabbix的yum源的rpm包以及相关GPL密匙;
[[email protected] yum.repos.d]# rpm -ivh zabbix-release-4.0-2.el7.noarch.rpm
3、修改repo文件,使yum从清华源下载
->修改后的repo文件<-
[zabbix]
name=Zabbix Official Repository - $basearch
baseurl=https://mirrors.tuna.tsinghua.edu.cn/zabbix/zabbix/4.0/rhel/7/$basearch/
enabled=1
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-ZABBIX-A14FE591
[zabbix-debuginfo]
name=Zabbix Official Repository debuginfo - $basearch
baseurl=https://mirrors.tuna.tsinghua.edu.cn/zabbix/zabbix/4.0/rhel/7/$basearch/debuginfo/
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-ZABBIX-A14FE591
gpgcheck=0
[zabbix-non-supported]
name=Zabbix Official Repository non-supported - $basearch
baseurl=https://mirrors.tuna.tsinghua.edu.cn/zabbix/non-supported/rhel/7/$basearch/
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-ZABBIX
gpgcheck=0
二、下载相关组件并配置

1、安装
->Httpd安装<-
[[email protected] yum.repos.d]# yum install httpd -y
---------------------------------------------------------------------------------
->Mysql安装<-
[[email protected] opt]# cd mysql/
[[email protected] mysql]# ./nn_install.sh
----------------------------------------------------------------