新建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

posted @ 2021-11-03 14:36  lijifei  阅读(148)  评论(0编辑  收藏  举报