使用yum安装zabbix

本文介绍了如何在CentOS 7系统上通过yum来安装Zabbix服务器和代理。首先,文章详细说明了安装Zabbix-server的过程,包括安装MySQL、配置数据库、添加Zabbix镜像源、清理yum缓存、安装Zabbix组件,并创建数据库及导入数据。接着,讲述了Zabbix-agent的安装步骤,包括添加镜像源、安装agent、配置agent的serverIP和hostname,以及启动服务。最后,验证了Zabbix-server和agent的正确运行,确认10050和10051端口正在监听。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

安装zabbix-server端

首先安装mysql:https://blog.youkuaiyun.com/qq_40200087/article/details/89479137

安装完毕后,/etc/my.cof配置需要更改下,否则出错

[mysqld]
character_set_server=utf8
init_connect='SET NAMES utf8'
basedir=/usr/local/mysql5.7
datadir=/usr/local/mysql5.7/data
socket=/var/lib/mysql/mysql.sock
socket=/tmp/mysql.sock
# Disabling symbolic-links is recommended to prevent assorted security risks
symbolic-links=0
# Settings user and group are ignored when systemd is used.
# If you need to run mysqld under a different user or group,
# customize your systemd unit file for mariadb according to the
# instructions in http://fedoraproject.org/wiki/Systemd

[mysqld_safe]
log-error=/var/log/mysqld.log
pid-file=/usr/local/mysql5.7/data/mysqld.pid

#
# include all files from the config directory
#
!includedir /etc/my.cnf.d
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值