[root@localhost ~]# mysql -p
mysql> create database zabbix character set utf8;
mysql> grant all privileges on zabbix.* to zabbix@localhost identified by 'zabbix';
mysql> flush privileges;
mysql> source /usr/share/doc/zabbix-server-mysql-2.4.7/create/schema.sql;
mysql> source /usr/share/doc/zabbix-server-mysql-2.4.7/create/images.sql;
mysql> source /usr/share/doc/zabbix-server-mysql-2.4.7/create/data.sql;
iptables -A INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT
iptables -A INPUT -m state --state NEW -m tcp -p tcp --dport 10050 -j ACCEPT
iptables -A INPUT -m state --state NEW -m udp -p udp --dport 10050 -j ACCEPT
iptables -A INPUT -m state --state NEW -m tcp -p tcp --dport 10051 -j ACCEPT
iptables -A INPUT -m state --state NEW -m udp -p udp --dport 10051 -j ACCEPT
chkconfig httpd on ; service httpd start
chkconfig mysqld on ; service mysqld start
chkconfig snmpd on ; service snmpd start
chkconfig snmptrapd on ; service snmptrapd start
chkconfig zabbix-agent on ; service zabbix-agent start
chkconfig zabbix-server on ; service zabbix-server start