centos 7 安裝zabbix3.0

設置主機名:

vi /etc/hosts

10.0.0.252         zabbix-server

hostnamectl set-hostname zabbix-server

 

關閉防火牆:

systemctl stop firewalld.service

systemctl disable firewalld.service

 

關閉selinux:

[root@localhost ~]# setenforce 0 

[root@localhost ~]# sed -i'/SELINUX/s/enforcing/disabled/' /etc/selinux/config 

 

配置yun源

rpm -ivh http://repo.zabbix.com/zabbix/3.0/rhel/7/x86_64/zabbix-release-3.0-1.el7.noarch.rpm

安裝服務器端包

yum install -y zabbix-server-MySQL  zabbix-web-mysql  zabbix-agent  mariadb-server

 

啓動mariadb

systemctl start mariadb

systemctl enable mariadb

 

創建zabbix數據庫

mysql -uroot -p

create database zabbix character set utf8 collateutf8_bin;

grant all privileges on zabbix.* to zabbix@localhostidentified by 'zabbix2016';

 

導入初始模式和數據

cd /usr/share/doc/zabbix-server-mysql-3.0.4/

zcat create.sql.gz |mysql -uroot zabbix

 

vi /etc/zabbix/zabbix_server.conf

91:DBName=zabbix

107:DBUser=zabbix

116:DBPassword=zabbix2016

 

systemctl start zabbix-server

systemctl enable zabbix-server

 

vim /etc/httpd/conf.d/zabbix.conf

        php_valuemax_execution_time 300

        php_valuememory_limit 128M

        php_valuepost_max_size 16M

        php_valueupload_max_filesize 2M

        php_valuemax_input_time 300

        php_valuealways_populate_raw_post_data -1

        #php_value date.timezone Europe/Riga

        php_valuedate.timezone Asia/Shanghai

 

systemctl start httpd.service

systemctl enable httpd.service

http://10.0.0.252/zabbix/setup.php

 

 

安裝和配置客戶端

rpm -ivh http://repo.zabbix.com/zabbix/3.0/rhel/7/x86_64/zabbix-release-3.0-1.el7.noarch.rpm

yum -y install zabbix-agent

vim /etc/zabbix/zabbix_agentd.conf

Server=zabbix-server-ip

systemctl enable zabbix-agent

systemctl start zabbix-agent

 

zabbix3.0中文顯示亂碼的問題解決辦法

http://blog.csdn.NET/xiegh2014/article/details/52038536


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章