centos7.5+zabbix4实战图文攻略--2019持续更新

一、zabbix安装与基本配置

1、配置YUM源
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo
rpm -ivh https://mirrors.aliyun.com/zabbix/zabbix/4.0/rhel/7/x86_64/zabbix-release-4.0-1.el7.noarch.rpm

Yum clean all
Yum makecache
2、安装zabbix、初始化mysql、zabbix数据库
yum install zabbix-server-mysql zabbix-web-mysql mariadb-server zabbix-agent -y

systemctl start mariadb
systemctl enable mariadb

mysql_secure_installation

create database zabbix character set utf8 collate utf8_bin;
grant all privileges on zabbix.* to zabbix@localhost identified by '123456';

zcat /usr/share/doc/zabbix-server-mysql-4.0.4/create.sql.gz|mysql -uzabbix -p123456 zabbix
3、配置zabbix

vim /etc/httpd/conf.d/zabbix.conf
php_value date.timezone Asia/Shanghai

systemctl start httpd
systemctl enable httpd

vim /etc/zabbix/zabbix_server.conf

DBPassword=123456

systemctl start zabbix-server
systemctl enable zabbix-server

vim /etc/zabbix/zabbix_agentd.conf

Server=192.168.100.110
ServerActive=192.168.100.110 #主动模式的server IP地址

systemctl start zabbix-agent
systemctl enable zabbix-agent

你可能感兴趣的:(centos7.5+zabbix4实战图文攻略--2019持续更新)