centos6.8安装zabbix2.4

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

由于官网很慢,经常看官方文档就弄的很烦,因此把我看官网安装配置zabbix的步骤在此记录一下。

###安装环境

centos6.8

192.168.2.110 基础服务器安装

#关闭防火墙

service iptables stop

chkconfig iptables off

#修改selinux

vim /etc/selinux/config

SELINUX=disabled

####yum安装MysqL.apache.PHP

yum -y install httpd httpd-devel

yum -y install MysqL MysqL-serverMysqL-devel

yum -y install PHP PHP-MysqL PHP-common PHP-gdPHP-mbstring PHP-mcrypt PHP-devel PHP-xml

###yum安装zabbix

#先安装yum源:

# rpm -ivhhttp://repo.zabbix.com/zabbix/2.4/rhel/6/x86_64/zabbix-release-2.4-1.el6.noarch.rpm

#安装zabbix

# yum install zabbix-server-MysqLzabbix-web-MysqL

#创建zabbix数据库

#先开启服务:service MysqLdstart

shell> MysqL -uroot-p<root_password>

MysqL> create database zabbix characterset utf8 collate utf8_bin;

MysqL> grant all privileges on zabbix.*to zabbix@localhost identified by '<password>';

MysqL> quit;

#导入数据到zabbix库

# cd/usr/share/doc/zabbix-server-MysqL-2.4.8/create

# MysqL -uroot -pxx zabbix < schema.sql

# MysqL -uroot -pxx zabbix < images.sql

# MysqL -uroot -pxx zabbix < data.sql

###修改zabbix配置文件

# vi /etc/zabbix/zabbix_server.conf

DBHost=localhost

DBName=zabbix

DBUser=zabbix

DBPassword=zabbix

#启动zabbix

# service zabbix-server start

###修改PHP配置

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

PHP_value max_execution_time 300

PHP_value memory_limit 128M

PHP_value post_max_size 16M

PHP_value upload_max_filesize 2M

PHP_value max_input_time 300

PHP_value date.timezone Asia/Shanghai

###启动服务

service httpd restart

chkconfig httpd on

service MysqLd restart

chkconfig MysqLd on

service zabbix-server restart

chkconfig zabbix-server on

#打开zabbix dashboard

192.168.2.110/zabbix进行安装

客户端可以安装zabbix的yum源之后,直接yum安装:yum install zabbix-agent

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

猜你在找的CentOS相关文章