安装 zabbix-server:
# rpm -i https://repo.zabbix.com/zabbix/3.4/rhel/7/x86_64/zabbix-release-3.4-2.el7.noarch.rpm
# yum install zabbix-server-mysql zabbix-web-mysql zabbix-agent
启动并初始化 mysql 数据库:
]# systemctl start mariadb
]# mysql -uroot -p
mysql> create database zabbix character set utf8 collate utf8_bin;
mysql> grant all privileges on zabbix.* to zabbix@localhost identified by 'zabbix';
mysql> quit;
配置 zabbix-server:
]# vi /etc/zabbix/zabbix_server.conf
DBPassword=password
]# vi /etc/httpd/conf.d/zabbix.conf
php_value date.timezone Asia/ShangHai
启动 zabbix:
]# systemctl restart zabbix-server zabbix-agent httpd
]# systemctl enable zabbix-server zabbix-agent httpd
访问:IP/zabbix