1、配置zabbix的yum源。
rpm -ivh http://repo.zabbix.com/zabbix/2.4/rhel/6/x86_64/zabbix-release-2.4-1.el6.noarch.rpm
2、安装相关软件包
yum install zabbix-server-mysql zabbix-web-mysql zabbix-agent zabbix-get mysql-server
3、配置数据库。
shell> mysql -uroot -p<password> mysql> create database zabbix character set utf8 collate utf8_bin; mysql> grant all privileges on zabbix.* to [email protected] identified by ‘<password>‘; mysql> quit; cd /usr/share/doc/zabbix-server-mysql-2.4.0/create mysql -uroot zabbix < schema.sql mysql -uroot zabbix < images.sql mysql -uroot zabbix < data.sql
4、修改主配置文件。
# vi /etc/zabbix/zabbix_server.conf DBHost=localhost DBName=zabbix DBUser=zabbix DBPassword=zabbix #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 Europe/Riga
时间: 2024-10-29 19:07:22