CentOS 6.4下快速部署Zabbix 2.4

1. 环境准备

CentOS 6.4

关闭selinux和iptables

两台虚拟机:一台Server,一台Agent

2. 安装官方yum源

所有服务器都要安装此yum源

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

3. 部署Zabbix Server

yum install zabbix-server-mysql zabbix-web-mysql zabbix-agent  mysql-server mysql -y
/etc/init.d/mysqld start
mysql -e "create database zabbix character set utf8 collate utf8_bin;"
mysql -e "grant all privileges on zabbix.* to zabbix@localhost identified by 'zabbix';"
 
cd /usr/share/doc/zabbix-server-mysql-2.4.*/create/
mysql -uroot zabbix < schema.sql
mysql -uroot zabbix < images.sql
mysql -uroot zabbix < data.sql
sed -i 's/^.*DBPassword=.*$/DBPassword=zabbix/' /etc/zabbix/zabbix_server.conf
service zabbix-server start
service zabbix-agent start
 
sed -i 's/^.*date.timezone =.*$/date.timezone = Asia\/Shanghai/g' /etc/php.ini
sed -i 's/^.*post_max_size =.*$/post_max_size = 16M/g' /etc/php.ini
sed -i 's/^.*max_execution_time =.*$/max_execution_time = 300/g' /etc/php.ini
sed -i 's/^.*max_input_time =.*$/max_input_time = 300/g' /etc/php.ini
service httpd restart
 
chkconfig mysqld on
chkconfig zabbix-server on
chkconfig zabbix-agent on
chkconfig httpd on

一些Zabbix相关教程集合

打开浏览器访问http://server_ip/zabbix/

CentOS 6.4下快速部署Zabbix 2.4

直接点击Next...

CentOS 6.4下快速部署Zabbix 2.4

继续点击Next...

CentOS 6.4下快速部署Zabbix 2.4

点击'Test connection' 后,继续Next

CentOS 6.4下快速部署Zabbix 2.4

继续Next...

相关推荐