Zabbix-server→zabbix-proxy→agent(三台设备)一、Zabbix-server搭建:1、选择您Zabbix服务器的平台:https://www.zabbix.com/cn/download?zabbix=5.0&os_distribution=centos&os_version=7&db=mysql&ws=apache2、选择安装repo文件:文件在/etc/yum.repos.d下。rpm -Uvh https://repo.zabbix.com/zabbix/5.0/rhel/7/x86_64/zabbix-release-5.0-1.el7.noarch.rpm注:如果安装不上需要同步下时间,如下图。解决办法:date -s (或者date +s 当前时间)安装Zabbix server and agentyum install zabbix-server-mysql zabbix-agent(资源差可以更改yum源)安装 Software Collectionsyum install centos-release-scl -y启用 zabbix 前端源,修改/etc/yum.repos.d/zabbix.repo,将[zabbix-frontend]下的 enabled 改为 1安装zabbix前端yum install zabbix-web-mysql-scl zabbix-apache-conf-scl -y安装数据库:(一般centos自带mariadb,只需开机自启即可:systemctl enable mariadb)yum install mariadb-server -y初始化数据库:mysql_secure_installation(更新重设mysqlroot密码)进入mysql:并建立zabbix数据库,此时可以用show databases;查看是否成功。Mysql -uroot -pcreate database zabbix character set utf8 collate utf8_bin;create user zabbix@localhost identified by ‘password’;grant all privileges on zabbix.* t
zabbix5.0以及zabbix-proxy搭建
最新推荐文章于 2025-07-05 08:57:22 发布