Centos7下使用yum源安裝zabbix Server

系統:Centos7
zabbix版本:4.2
 

1、Zabbix Server端

 
一、安裝倉庫
rpm -ivh https://repo.zabbix.com/zabbix/4.2/rhel/7/x86_64/zabbix-release-4.2-1.el7.noarch.rpm

 

二、zabbix frontend須要安裝一些不在基礎包裏的附加包,須要啓用可選rpm庫
yum -y install yum-utils
yum-config-manager --enable rhel-7-server-optional-rpms

 

三、安裝Server
#若是是使用postgresql,那麼把mysql改成pgsql
yum install zabbix-server-mysql

 

四、啓動zabbix server、並設置開機自啓動
systemctl start zabbix-server
systemctl enable zabbix-server

 

2、Zabbix agent端

 
一、安裝zabbix agent
yum install zabbix-agent

 

二、啓動zabbix agent
systemctl start zabbix-agent

 

 

3、Zabbix frontend端

 
一、安裝frontend
#若是是使用postgresql,那麼把mysql改成pgsql
yum install zabbix-web-mysql 

 

若是報錯:php

Error: php70u-common conflicts with php56u-common-5.6.40-1.ius.centos7.x86_64
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

 

解決辦法:https://www.virtualmin.com/node/39485 node

yum install scl-utils
yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
yum install http://rpms.remirepo.net/enterprise/remi-release-7.rpm
#到這一步就能夠了
yum install php70
yum install php70-php-mysqlnd
yum install php70-php-curl
yum install php70-php-simplexml
yum install php70-php-devel php70-php-gd php70-php-json php70-php-mcrypt php70-php-mbstring php70-php-opcache php70-php-pear php70-php-pecl-apcu php70-php-pecl-geoip php70-php-pecl-imagick php70-php-pecl-json-post php70-php-pecl-memcache php70-php-pecl-xmldiff php70-php-pecl-zip php70-php-pspell php70-php-soap php70-php-tidy php70-php-xml php70-php-xmlrpc

 

 
二、打開時區 vim /etc/httpd/conf.d/zabbix.conf 
php_value date.timezone Asia/Shanghai

 

三、啓動httpd
 
systemctl restart httpd.service

 

四、經過域名訪問設置 
 
 
 
 
相關文章
相關標籤/搜索