Feel no regret for this life.

zabbix4.0安装及问题解决

Zabbix silianpan 285℃ 0评论

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

转载请注明:我的技术分享 » zabbix4.0安装及问题解决

喜欢 (1)
发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址