Installation
Official Manual
- RHEL7/8: https://www.zabbix.com/documentation/current/manual/installation/install_from_packages/rhel_centos
Platform to install
Zabbix Version | 5.0 LTS |
OS Distribution | CENTOS |
OS Version | 7 |
Database | MySQL |
Web Server | Apache |
Prerequisites
php 7.2
Zabbix frontend requires PHP version 7.2 or newer starting with Zabbix 5.0. Note that RHEL/CentOS 7 only provide PHP 5.4.
Install and configure Zabbix server
a. Install Zabbix repository
# rpm -Uvh https://repo.zabbix.com/zabbix/5.0/rhel/7/x86_64/zabbix-release-5.0-1.el7.noarch.rpm
# yum clean all
b. Install Zabbix server and agent
# yum install zabbix-server-mysql zabbix-agent
c. Install Zabbix frontend
Enable Red Hat Software Collections
# yum install centos-release-scl
Edit file /etc/yum.repos.d/zabbix.repo and enable zabbix-frontend repository.
[zabbix-frontend]
...
enabled=1
...
Install Zabbix frontend packages.
# yum install zabbix-web-mysql-scl zabbix-apache-conf-scl
如果不想修改套件庫的設定,可以改用以下指令安裝:
# yum --enablerepo=zabbix-frontend install zabbix-web-mysql-scl zabbix-apache-conf-scl