zabbix yum安裝

1. 安裝zabbix yum源php

rpm -Uvh https://repo.zabbix.com/zabbix/4.0/rhel/6/x86_64/zabbix-release-4.0-1.el6.noarch.rpm前端

yum clean allmysql

 

 

2.安裝zabbix服務端,前端,代理web

yum -y install zabbix-server-mysql zabbix-web-mysql zabbix-agentsql

 

3.建立數據庫數據庫

# mysql -uroot -p
password
mysql> create database zabbix character set utf8 collate utf8_bin;
mysql> grant all privileges on zabbix.* to zabbix@localhost identified by 'password';
mysql> quit;
vim

導入初始架構和數據。系統將提示您輸入新建立的密碼。服務器

zcat /usr/share/doc/zabbix-server-mysql*/create.sql.gz | mysql -uzabbix -p zabbix架構

 

4.配置zabbix數據庫ide

vim /etc/zabbix/zabbix_server.conf

DBPassword=password

 

爲zabbix前端配置php

php_value date.timezone Europe/Riga

 

5.啓動zabbix服務器和代理進程

systemctl restart zabbix-server zabbix-agent httpd

systemctl enable zabbix-server zabbix-agent httpd

相關文章
相關標籤/搜索