#wget https://jaist.dl.sourceforge.net/project/zabbix/ZABBIX%20Latest%20Stable/4.0.3/zabbix-4.0.3.tar.gz
dnf install -y zabbix-* zabbix*
dnf install -y mariadb mariadb-server
systemctl start mariadb
systemctl start zabbix-server
systemctl start zabbix-agent
#systemctl enable zabbix-server
systemctl enable zabbix-agent
systemctl enable mariadb
systemctl start httpd
systemctl start php-fpm
firewall-cmd --add-service=http --permanent
firewall-cmd --add-service=http
vim /etc/php.ini
post_max_size=200M
max_execution_time=300
max_input_time=600
date.timezone=Asia/Shanghai
mysql -u root -p
create database zabbix;
cd /usr/share/zabbix-mysql/
mysql -u root -p zabbix <schema.sql
mysql -u root -p zabbix <images.sql
mysql -u root -p zabbix <data.sql
#mysql -u root -pasdfasdf zabbixnew <schema.sql
#mysql -u root -pasdfasdf zabbixnew <images.sql
#mysql -u root -pasdfasdf zabbixnew <data.sql
#访问地址
http://××××/zabbix/
#默认的账号密码是
admin zabbix