zabbix4.0
安装
# 安装zabbix rpm
rpm -i https://repo.zabbix.com/zabbix/4.0/rhel/7/x86_64/zabbix-release-4.0-1.el7.noarch.rpm
yum install zabbix-server-mysql zabbix-web-mysql zabbix-agent
# 安装mysql
# 创建用户和数据库
create database zabbix character set utf8 collate utf8_bin;
create user 'zabbix'@'localhost' identified by 'Asdf@123';
grant all privileges on *.* to zabbix@localhost;
# 执行数据库脚本
zcat /usr/share/doc/zabbix-server-mysql*/create.sql.gz | mysql -uzabbix -p zabbix
# 配置
vim /etc/zabbix/zabbix_server.conf
DBPassword=Asdf@123
# 配置php
vim /etc/httpd/conf.d/zabbix.conf
# 添加配置时区
php_value date.timezone Asia/Shanghai
# 启动服务
systemctl restart zabbix-server zabbix-agent httpd
# 自启动服务
systemctl enable zabbix-server zabbix-agent httpd
二、问题解决
MySQL Authentication plugin ‘caching_sha2_password’ cannot be loaded
ALTER USER 'root'@'localhost' IDENTIFIED BY 'password' PASSWORD EXPIRE NEVER; #修改加密规则
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password'; #更新一下用户的密码
FLUSH PRIVILEGES; # 刷新权限
三、zabbix4.0从centos7到centos6迁移
Remove the line that says
Require all granted
it's only needed on Apache >=2.4
评论区