1.安装LAMP环境
yum install -y httpd
yum install -y mysql mysql-server mysql-devel
yum install -y php php-mysql php-gd php-ldap php-odbc php-pear
yum install -y net-snmp net-snmp-devel net-snmp-libs net-snmp-utilsphp-snmp

2.安装服务端组件并导入数据库
rpm -ivh http://repo.zabbix.com/zabbix/2.4/rhel/6/x86_64/zabbix-release-2.4-1.el6.noarch.rpm
yum install -y zabbix-server-mysql zabbix-web-mysql
/etc/init.d/mysqld restart
mysqladmin -uroot password 'passwd'
mysql -uroot -p'passwd'
create database zabbix character set utf8 collate utf8_bin;
grant all privileges on zabbix.* to zabbixuser@localhost identified by 'zabbixpass';
flush privileges;
exit
mysql -uzabbixuser -p'zabbixpass' zabbix < schema.sql
mysql -uzabbixuser -p'zabbixpass' zabbix < p_w_picpaths.sql
mysql -uzabbixuser -p'zabbixpass' zabbix < data.sql

3.配置服务端
vi /etc/zabbix/zabbix_server.conf
DBHost=localhost
DBName=zabbix
DBUser=zabbixuser
DBPassword=zabbixpass

vi /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 always_populate_raw_post_data -1
php_value date.timezone Asia/Shanghai

4.设置开机自启动
/etc/init.d/httpd restart
/etc/init.d/zabbix-server restart
chkconfig mysqld on
chkconfig zabbix-server on
chkconfig httpd on

5.安装zabbix
http://ip/zabbix
如果安装以上步骤安装的环境,填写好数据库的用户名和密码一路下一步即可。(步骤略)
安装完成后,默认管理员用户名:Admin 密码:zabbix


6.安装客户端组件
rpm -ivh http://repo.zabbix.com/zabbix/2.4/rhel/6/x86_64/zabbix-release-2.4-1.el6.noarch.rpm
yum install -y zabbix-agent

7.配置客户端
vi /etc/zabbix/zabbix_agentd.conf
Server=192.168.88.60  #zibbix-server ip
ServerActive=192.168.88.60  #zibbix-server ip

/etc/init.d/zabbix-agent restart
chkconfig zabbix-agent on