centos7.2 安装zabbix3.0详解

前端之家收集整理的这篇文章主要介绍了centos7.2 安装zabbix3.0详解前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

关闭防火墙:

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 -ivhhttp://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
Enter password: ##输入MysqL密码,默认为空

create database zabbix character set utf8 collate utf8_bin;
##创建数据库zabbix,并且数据库编码使用utf8

grant all privileges on zabbix.* to zabbix@localhost identified by 'zabbix2016';
##允许账户能从本机连接至数据库zabbix
quit;

导入初始模式和数据

cd /usr/share/doc/zabbix-server-MysqL-3.0.6/

zcat create.sql.gz |MysqL -uroot zabbix

vim /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://ip地址/zabbix/setup.php


安装和配置客户端

rpm -ivhhttp://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

wKiom1hQ94vj2iTNAABZpJvm38g825.png-wh_50

wKioL1hQ95rws3PEAACPphsKANk092.png-wh_50

wKiom1hQ95qA7XyRAACAz57ZH8A692.png-wh_50

wKiom1hQ95uy7sBhAABf-XRawUA668.png-wh_50

wKioL1hQ95vxrZK1AAB_PsrA7aw619.png-wh_50

wKioL1hQ95vQV4IwAABcBQaq_x0426.png-wh_50

wKiom1hQ95zBWPMbAABNCT5pynE966.png-wh_50

wKiom1hQ-AGj70A2AACeFWzPjso266.jpg-wh_50


zabbix3.0中文显示乱码的问题解决办法


[root@zabbix-server include]# pwd
/usr/share/zabbix/include
[root@zabbix-server include]# vi defines.inc.PHP
#修改第93行
define('ZBX_FONT_NAME','msyh');
#修改第45行改为
define('ZBX_GRAPH_FONT_NAME','msyh')
然后下载微软雅黑字体,改名为msyh传入 /usr/share/zabbix/fonts目录下即可

wKiom1hQ-GjSetQkAAL9b6lshj8993.png-wh_50

wKioL1hQ-GmRRiR1AALv5MHcruw313.png-wh_50

原文链接:https://www.f2er.com/centos/379444.html

猜你在找的CentOS相关文章