RHEL6.6下安装Zabbix2.4安装步骤详解

额滴神啊~~~经过两个晚上的深思熟虑,RHEL6.6搭建zabbix2.4监控系统终于搭建好了!现将搭建好的zabbix记录下来。

 

  1. 1.       安装fpingiksemel

# rpm -ivh fping-3.9-1.el6.rf.x86_64.rpm

# rpm -ivh iksemel-1.4-42.1.src.rpm

 

  1. 2.       安装libcurl源、net-snmp

# yum installlibcurl -y

# yum installnet-snmp �Cy

 

  1. 3.       安装zabbix所需要的组件和包

# rpm �Civh zabbix-release-2.4-1.el6.noarch.rpm

# yum installzabbix-server-mysql zabbix-web-mysql �Cy

# yum installzabbix-agent -y

 

  1. 4.       启动mysql数据库

# service mysqldstatus

# service mysqldstart

 

  1. 5.       配置mysql数据库文件

# mysql -u root

mysql> createdatabase zabbix character set utf8 collate utf8_bin;

mysql> grantall privileges on zabbix.* to zabbix@localhost identified by ‘zabbix’;

mysql> exit;

# mysql -u rootzabbix < /usr/share/doc/zabbix-server-mysql-2.4.6/create/schema.sql

# mysql -u rootzabbix < /usr/share/doc/zabbix-server-mysql-2.4.6/create/images.sql

# mysql -u rootzabbix < /usr/share/doc/zabbix-server-mysql-2.4.6/create/data.sql

 

  1. 6.       配置zabbix

# vi /etc/zabbix/zabbix_server.conf

# vi/etc/httpd/conf.d/zabbix.conf

 

  1. 7.       启动zabbix server

# service httpdrestart

# chkconfighttpd on

# serviceiptables stop

# chkconfigiptables off

# servicezabbix-server start

# chkconfigzabbix-server on

# servicezabbix-agent start

# chkconfigzabbix-agent on

 

(具体步骤请看CentOS6.6安装zabbix2.4那篇文章!)

你可能感兴趣的:(mysql,service,记录,数据库文件,监控系统)