Zabbix6.4安装文档,超简单超详细

Zabbix安装手册
 

一、Zabbix安装部署

1、Zabbix服务器安装

准备Centos8系统,确实是不是centos8.5版本,否则dnf 命令无法使用

 cat /etc/redhat-release

如果版本不是centos8.5,按如下操作:

更换阿里云源

rm -rf /etc/yum.repos.d/*

curl -o /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-vault-8.5.2111.repo

yum makecache更新缓存

yum update -y 更新(注意,版本更新后重启,yum库会被覆盖,需要重新执行上面的更换源)

1、安装zabbix存储库

rpm -Uvh https://repo.zabbix.com/zabbix/6.4/rhel/8/x86_64/zabbix-release-6.4-1.el8.noarch.rpm

dnf clean all

2、安装Zabbix server,Web前端,agent

dnf install zabbix-server-mysql zabbix-web-mysql zabbix-apache-conf zabbix-sql-scripts zabbix-selinux-policy zabbix-agent

3、Mariadb数据库安装、配置

3.1配置Mariadb库

vi /etc/yum.repos.d/MariaDB.repo

[mariadb]

name = MariaDB

baseurl = https://mirrors.aliyun.com/mariadb/yum/10.10/centos8-amd64/

gpgkey = http://mirrors.aliyun.com/mariadb/yum/RPM-GPG-KEY-MariaDB

gpgcheck = 1

3.1安装Mariadb

yum install MariaDB-server MariaDB-client

3.2、初始化配置

systemctl start mariadb

systemctl enable mariadb

systemctl status mariadb

4、Zabbix初始化数据库

mysql -uroot -p

password

mysql> create database zabbix character set utf8mb4 collate utf8mb4_bin;

mysql> create user zabbix@localhost identified by 'password';

mysql> grant all privileges on zabbix.* to zabbix@localhost;

mysql> set global log_bin_trust_function_creators = 1;

mysql> quit;

by 'password';   这里的password替换成你要设置的密码

导入初始架构和数据

zcat /usr/share/zabbix-sql-scripts/mysql/server.sql.gz | mysql --default-character-set=utf8mb4 -uzabbix -p zabbix

输入刚刚设置的数据库密码

禁用 log_bin_trust_function_creators 选项

# mysql -uroot -p

mysql> set global log_bin_trust_function_creators = 0;

mysql> quit;

4.1、zabbix_server配置数据库

vi /etc/zabbix/zabbix_server.conf

DBPassword=password

三、Zabbix配置

3.1环境检查

访问Zabbix-server的地址,如:http://172.23.40.78,

Zabbix6.4安装文档,超简单超详细_第1张图片

默认账户:Admin

默认密码:zabbix

你可能感兴趣的:(zabbix)