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

©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

友情链接更多精彩内容