标签:自动 data 组件 com rhel pass 建库 arc word
centos7.5+mariadb
进入数据库
mysql -p
创建库
create database zabbix;
创建用户
create user ‘zabbix‘@‘%‘ identified by ‘zabbix‘;
设置权限
grant all privileges on zabbix.* to ‘zabbix‘@‘localhost‘ identified by ‘zabbix‘;
刷新
flush privileges;
下载rpm并yum安装
rpm -ivh https://repo.zabbix.com/zabbix/4.0/rhel/7/x86_64/zabbix-release-4.0-1.el7.noarch.rpm
安装3大组件,agent默认会自动安装,独立机器独立安装
yum -y install zabbix-server-mysql zabbix-web-mysql zabbix-agent zabbix-get
创建zabbix的表
zcat /usr/share/doc/zabbix-server-mysql-4.0.15/create.sql.gz | mysql zabbix -uzabbix -pzabbix
更改zabbix的配置文件
vim /etc/zabbix/zabbix_server.conf
---------------------------------------------------------
DBHost=localhost
DBName=zabbix
DBUser=zabbix
DBPassword=zabbix
---------------------------------------------------------
标签:自动 data 组件 com rhel pass 建库 arc word
原文地址:https://www.cnblogs.com/Leaders543/p/12067929.html