1. 安装官方yum源
所有服务器都要安装此yum源
rpm -ivh http://repo.zabbix.com/zabbix/2.4/rhel/6/x86_64/zabbix-release-2.4-1.el6.noarch.rpm
2. 部署Zabbix Server
yum install zabbix-server-mysql zabbix-web-mysql zabbix-agent mysql-server mysql -y
/etc/init.d/mysqld startmysql -e "create database zabbix character set utf8 collate utf8_bin;"mysql -e "grant all privileges on zabbix.* to zabbix@localhost identified by 'zabbix';" 3.cd /usr/share/doc/zabbix-server-mysql-2.4.*/create/mysql -uroot zabbix < schema.sqlmysql -uroot zabbix < p_w_picpaths.sqlmysql -uroot zabbix < data.sqlsed -i 's/^.*DBPassword=.*$/DBPassword=zabbix/' /etc/zabbix/zabbix_server.confservice zabbix-server startservice zabbix-agent start sed -i 's/^.*date.timezone =.*$/date.timezone = Asia\/Shanghai/g' /etc/php.inised -i 's/^.*post_max_size =.*$/post_max_size = 16M/g' /etc/php.inised -i 's/^.*max_execution_time =.*$/max_execution_time = 300/g' /etc/php.inised -i 's/^.*max_input_time =.*$/max_input_time = 300/g' /etc/php.iniservice httpd restart chkconfig mysqld onchkconfig zabbix-server onchkconfig zabbix-agent onchkconfig httpd on4.http://127.0.0.1/zabbix