Centos7下使用yum源安裝zabbix Server


系統:Centos7
zabbix版本:4.2
 

一、Zabbix Server端

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

 

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

 

3、安裝Server
#如果是使用postgresql,那么把mysql改為pgsql
yum install zabbix-server-mysql

 

4、啟動zabbix server、並設置開機自啟動
systemctl start zabbix-server
systemctl enable zabbix-server

 

二、Zabbix agent端

 
1、安裝zabbix agent
yum install zabbix-agent

 

2、啟動zabbix agent
systemctl start zabbix-agent

 

 

三、Zabbix frontend端

 
1、安裝frontend
#如果是使用postgresql,那么把mysql改為pgsql
yum install zabbix-web-mysql 

 

如果報錯:

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 

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

 

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

 

3、啟動httpd
 
systemctl restart httpd.service

 

4、通過域名訪問設置 
 
 
 
 

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM