Zabbix本地yum源配置&实验准备(上)
Zabbix监控系统
——————
vim centos7.repo #名字可以随便取 -----------以下baseurl指向可指向阿里yum源
[base] -----------阿里巴巴开源镜像网站: https://opsx.alibaba.com/mirror
name=base
baseurl= http://192.168.95.1:8081/repository/CentOS7-tsinghua-edu-base/
enabled=1
gpgcheck=0

[epel]
name=epel
baseurl= http://192.168.95.1:8081/repository/CentOS7-tsinghua-edu-epel/
enabled=1
gpgcheck=0

vim zabbix.repo
[zabbix-3.4]
name=zabbix-3.4
baseurl= http://192.168.95.1:8081/repository/zabbix-3.4/
enabled=1
gpgcheck=0

[zabbix-nonsupported-3.4]
name=zabbix-nonsupported-3.4
baseurl= http://192.168.95.1:8081/repository/zabbix-nonsupported-3.4/
enabled=1
gpgcheck=0

vim mariadb.repo
[mariadb-10.4]
name=mariadb-10.4
baseurl= http://192.168.95.1:8081/repository/mariadb-10.4/
enabled=1
gpgcheck=0

————————
实验准备:

  1. centos7.5系统服务器3台、1台为监控服务器,2监控节点、配置好yum源、所有机器关闭防火墙&selinux...
    2.基本命令:
    setenforce 0
    systemctl stop firewalld.service
  2. 更改三台机器的主机名zabbix-server、zabbix-agent(2);IP 更改, 开启监控功能
    例:图片
    4.zabbix 安装
    ① 更新yum仓库 (wget 源来自雒哥共享)

wget http://10.31.165.45:8081/repository/CentOS7-tsinghua-edu-base/ (CentOS7-tsInghua-edu-base)

wget http://10.31.165.45:8081/repository/CentOS7-tsinghua-edu-epel/ (CentOS7-tsInghua-eduepel)

wget http://10.31.165.45:8081/repository/zabbix-3.4/ ; (zabbix-3.4)

wget http://10.31.165.45:8081/repository/zabbix-nonsupported-3.4/ ; (zabbix-nonsupported-3.4)

yum clean all
yum repolist

安装相关软件包
图片

        ②安装设置数据库:
            cd  /etc/yum.repos.d
            创建mariadbyum源配置
            yum  mariadb.repo
   图片

图片

图片

上部分结束————————