浏览zabbix官网,发现centos7只能部署zabbix5.0版本 https://www.zabbix.com/cn/download?zabbix=5.0&os_distribution=centos&os_version=7&components=server_frontend_agent&db=mysql&ws=apache rpm -Uvh https://repo.zabbix.com/zabbix/5.0/rhel/7/x86_64/zabbix-release-5.0-1.el7.noarch.rpm #首先更改rpm源 yum -y install zabbix-server-mysql zabbix-agent zabbix-get mariadb mariadb-server centos-release-scl #安装zabbix vi /etc/yum.repos.d/zabbix.repo #编辑[ zabbix-frontend ]下修改enabled=1 systemctl start mariadb #启动数据库 mysql_secure_installation #初始化数据库 mysql -uroot -p #登录数据库并如下配置 create database zabbix character set utf8 collate utf8_bin; create user zabbix@localhost identified by ‘password’; grant all privileges on zabbix.* to zabbix@localhost; quit; yum -y […]