首页 > 代码库 > zabbix2.4

zabbix2.4

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

yum install php -y

yum install mysql -y

yum install mysql-server -y


yum install zabbix-server-mysql -y

yum install zabbix-web-mysql -y

yum install zabbix-agent -y


service mysqld start


mysql -uroot

mysql> create database zabbix character set utf8 collate utf8_bin;

mysql> grant all privileges on zabbix.* to zabbix@localhost identified by ‘zabbix‘;

mysql> exit


cd /usr/share/doc/zabbix-server-mysql-2.4.8/create

mysql -uroot zabbix < schema.sql

mysql -uroot zabbix < images.sql

mysql -uroot zabbix < data.sql


vi /etc/zabbix/zabbix_server.conf

DBHost=localhost

DBName=zabbix

DBUser=zabbix

DBPassword=zabbix


service zabbix-server start

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 date.timezone Asia/Shanghai


service httpd restart


service iptables stop

vi /etc/selinux/config  disabled

setenforce 0

chkconfig httpd on

chkconfig mysqld on

chkconfig zabbix-server on

chkconfig zabbix-agent on

chkconfig iptables off



zabbix2.4