sed -i's/SELINUX=enforcing/SELINUX=disabled/' /etc/selinux/config
systemctl disable --now firewalld
Reboot
安装 zabbix rpm 源,鉴于国内网络情况,使用阿里云 zabbix 源
rpm -Uvh https://mirrors.aliyun.com/zabbix/zabbix/5.0/rhel/7/x86_64/zabbix-release-5.0-1.el7.noarch.rpm
sed -i's#http://repo.zabbix.com#https://mirrors.aliyun.com/zabbix#' /etc/yum.repos.d/zabbix.repo
yum clean all
create database zabbix character set utf8 collate utf8_bin;
create user zabbix@localhost identified by 'zabbix'; # '或者设置其他的密码 'abc-321'
grant all privilegeson zabbix.* to zabbix@localhost;# 使用这条命令也可以修改用户密码 并授权: grant all privileges on zabbix.* to zabbix@localhost identified by 'zabbix';
quit;