参考文档:https://www.zabbix.com/documentation/4.0/manual/installation/install_from_packages/rhel_centos
目录:
- 配置yum源、时间同步
- zabbix4.0LTS 安装
- 安装mysql
- 配置httpd服务
- zabbix网页安装
- 配置zabbix server配置文件,并启动zabbix-server服务
- 在zabbix-server上安装zabbix-agent
配置yum源、时间同步
# 使用阿里yum源
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
# 阿里epel源
wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo
yum install -y ntpdate
echo '* * * * * /usr/sbin/ntpdate ntp1.aliyun.com &>/dev/null' >> /var/spool/cron/root
# 查看crontab
crontab -l
zabbix4.0LTS 安装
# 安装zabbix yum源
[root@localhost ~]# rpm -ivh http://repo.zabbix.com/zabbix/4.0/rhel/7/x86_64/zabbix-release-4.0-1.el7.noarch.rpm
[root@localhost ~]# rpm -ql zabbix-release-4.0-1.el7.noarch
/etc/pki/rpm-gpg/RPM-GPG-KEY-ZABBIX
/etc/pki/rpm-gpg/RPM-GPG-KEY-ZABBIX-A14FE591
/etc/yum.repos.d/zabbix.repo
/usr/share/doc/zabbix-release-4.0
/usr/share/doc/zabbix-release-4.0/GPL
# 修改为阿里yum源
[root@localhost ~]