题记部分
一、准备工作
1.1、服务器角色规划
主机名 | IP地址 | 角色 | 备注 |
ctos79-01 | 192.168.2.121 | zabbix-server | 开启监控功能 |
ctos79-02 | 192.168.2.122 | zabbix-agent | |
ctos79-03 | 192.168.2.133 | zabbix-agent |
1.2、关闭防火墙和SELinux
setenforce 0
sed -i 's/SELINUX=enforcing/SELINUX=disabled/' /etc/selinux/config
systemctl stop firewalld.service
1.3、配置hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
192.168.2.121 ctos79-01
192.168.2.122 ctos79-02
192.168.2.123 ctos79-03
二、开始安装
(1)访问阿里云镜像仓库:https://mirrors.aliyun.com,搜索zabbix
(2)安装Zabbix
# 安装wget命令
yum -y install wget
# 从阿里云下载zabbix的安装包
wget https://mirrors.aliyun.com/zabbix/zabbix/6.5/rhel/7/x86_64/zabbix-release-6.5-1.el7.noarch.rpm
# -----------------下面两个不用管----------------
# 获取到rpm包
wget http://repo.zabbix.com/zabbix/3.4/rhel/3.4/rhel/7/x86_64/zabbix-release-3.4-2.el7.noarch.rpm
# 安装zabbix源
rpm -ivh https://repo.zabbix.com/zabbix/4.2/rhel/7/x86_64/zabbix-release-4.2-1.el7.noarch.rpm
(2)
三、标题
— 业精于勤荒于嬉,行成于思毁于随 —
标签:03,部署,ctos79,192.168,zabbix,rpm,localhost From: https://www.cnblogs.com/houhuilinblogs/p/18210980