一、环境检查
[root@rhel:~]#cat /etc/redhat-release Red Hat Enterprise Linux Server release 7.3 (Maipo) [root@rhel:~]#uname -r 3.10.0-514.el7.x86_64 [root@rhel:~]#getenforce Disabled
二、官方源
首先,根据需求获取官方源:
[root@rhel:/opt]#wget http://repo.zabbix.com/zabbix/3.5/rhel/7/x86_64/zabbix-release-3.5-1.el7.noarch.rpm --2018-03-15 14:14:26-- http://repo.zabbix.com/zabbix/3.5/rhel/7/x86_64/zabbix-release-3.5-1.el7.noarch.rpm Resolving repo.zabbix.com (repo.zabbix.com)... 162.243.159.138 Connecting to repo.zabbix.com (repo.zabbix.com)|162.243.159.138|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 13648 (13K) [application/x-redhat-package-manager] Saving to: ‘zabbix-release-3.5-1.el7.noarch.rpm’ 100%[================================>] 13,648 --.-K/s in 0.03s 2018-03-15 14:14:27 (423 KB/s) - ‘zabbix-release-3.5-1.el7.noarch.rpm’ saved [13648/13648]
安装源:
[root@rhel:/opt]#rpm -ivh zabbix-release-3.5-1.el7.noarch.rpm warning: zabbix-release-3.5-1.el7.noarch.rpm: Header V4 RSA/SHA512 Signature, key ID a14fe591: NOKEY Preparing... ################################# [100%] Updating / installing... 1:zabbix-release-3.5-1.el7 ################################# [100%]
安装完成之后,/etc/yum.repos.d目录下会产生zabbix.repo文件。
[root@rhel:/etc/yum.repos.d]#cat zabbix.repo [zabbix] name=Zabbix Official Repository - $basearch baseurl=http://repo.zabbix.com/zabbix/3.5/rhel/7/$basearch/ enabled=1 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-ZABBIX-A14FE591 [zabbix-non-supported] name=Zabbix Official Repository non-supported - $basearch baseurl=http://repo.zabbix.com/non-supported/rhel/7/$basearch/ enabled=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-ZABBIX gpgcheck=1
yum源已就绪,后面执行yum install安装即可。
三、zabbix的几个重要组件
zabbix-server-mysql 提供zabbix-server服务
zabbix-proxy-mysql 提供zabbix的代理服务,可以实现分布式监控,减轻zabbix-server的压力
zabbix-web-mysql 提供httpd服务
zabbix-get 提供检查是否能正确获取到zabbix的监控脚本key的监控值
zabbix-agent 提供zabbix-agent服务
由于本次只是在PC的vmware虚拟机上安装测试,所以不安装zabbix-proxy-mysql组件。
四、安装zabbix server
安装zabbix sever需要用到两个组件zabbix-server-mysql 和zabbix-get,zabbix-server-mysql包集成了zabbix server服务和MySQL数据库。选择安装zabbix-server-mysql这个包,是因为数据库选用的是MySQL。
[root@rhel:/opt]#yum install zabbix-server-mysql zabbix-get Loaded plugins: aliases, changelog, langpacks, ovl, product-id, search-disabled-repos, subscription-


最低0.47元/天 解锁文章
469

被折叠的 条评论
为什么被折叠?



