新建zabbix数据库

1.安装mysql
dnf install -y @mysql
systemctl start mysqld.service
systemctl enable mysqld.service
初始化mysql
mysql_secure_installation
create user zabbix@localhost identified by '1234.Com!';

2.py连接

pip install pymysql

3.禁用防火墙

systemctl stop firewalld
systemctl disable firewalld.service
#setenforce 0
#getenforce
Permissive
#vi /etc/selinux/config
SELINUX=disable

原文地址:https://www.cnblogs.com/lijifei/p/14026157.html