侧边栏壁纸
博主头像
silianpan博主等级

Feel no regret for this life.

  • 累计撰写 39 篇文章
  • 累计创建 19 个标签
  • 累计收到 0 条评论

zabbix4.0安装及问题解决

silianpan
2022-03-18 / 0 评论 / 0 点赞 / 53 阅读 / 1,000 字
温馨提示:
本文最后更新于 2022-03-18,若内容或图片失效,请留言反馈。部分素材来自网络,若不小心影响到您的利益,请联系我们删除。

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

0

评论区