小白虚拟机Centos8部署zabbix6.0教程

本文档详细介绍了如何在CentOS8虚拟机中部署Zabbix6.0,包括关闭防火墙和seleinux,更换yum源,安装mysql-server,设置数据库,安装Zabbix,解决导入数据库时的权限问题,以及配置相关服务。
摘要由CSDN通过智能技术生成

虚拟机环境
在这里插入图片描述

CD镜像:CentOS-Stream-8-x86_64-20221125-dvd1.iso

关闭防火墙
]# systemctl stop firewalld
]# systemctl disable firewalld
Removed /etc/systemd/system/multi-user.target.wants/firewalld.service.
Removed /etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service.

关闭seleinux
]# setenforce 0
]# sed -i ‘s/SELINUX=enforcing/SELINUX=disabled/g’ /etc/selinux/config

更换yum源
]# wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-vault-8.5.2111.repo
]# sed -i -e ‘/mirrors.cloud.aliyuncs.com/d’ -e ‘/mirrors.aliyuncs.com/d’ /etc/yum.repos.d/CentOS-Base.repo
]# dnf clean all
]# yum makecache
Warning: failed loading ‘/etc/yum.repos.d/CentOS-AppStream.repo’, skipping.
Repository extras is listed more than once in the configuration
Repository PowerTools is listed more than once in the configuration
Repository centosplus is listed more than once in the configuration
CentOS-8.5.2111 - Base - mirrors.aliyun.com 688 kB/s | 4.6 MB 00:06
CentOS-8.5.2111 - Extras - mirrors.aliyun.com 42 kB/s | 10 kB 00:00
CentOS-8.5.2111 - AppStream - mirrors.aliyun.com 439 kB/s | 8.4 MB 00:19
Zabbix Official Repository (Agent2 Plugins) - x86_64 1.1 kB/s | 1.7 kB 00:01
Zabbix Official Repository - x86_64 69 kB/s | 199 kB 00:02
Zabbix Official Repository (non-supported) - x86_64 755 B/s | 1.2 kB 00:01
Metadata cache created
.
]# sed -i ‘s/mirrorlist/#mirrorlist/g’ /etc/yum.repos.d/CentOS-
]#sed -i
* ‘s|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g’ /etc/yum.repos.d/CentOS-*
]# yum makecache

安装mysql-server
]# dnf install mysql-server
Warning: failed loading ‘/etc/yum.repos.d/CentOS-AppStream.repo’, skipping.
Repository extras is listed more than once in the configuration
Repository PowerTools is listed more than once in the configura

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值