zabbix(1)服务端安装

1.不同系统下载不同的安装文件

Zabbix 2.4 for RHEL6, Oracle Linux 6, CentOS 6:

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

Zabbix 2.4 for RHEL7, Oracle Linux 7, CentOS 7:

# rpm -ivh http://repo.zabbix.com/zabbix/2.4/rhel/7/x86_64/zabbix-release-2.4-1.el7.noarch.rpm

2.选择需要安装的文件,比如

# yum install zabbix zabbix-server  zabbix-web-mysql zabbix-agent zabbix-web zabbix-server-mysql

# yum install mysql_server mysql

3.配置MySQL

# mysql -uroot -p<password>

mysql> create database zabbix character set utf8 collate utf8_bin;

mysql> grant all privileges on zabbix.* to zabbix@localhost identified by '<password>';

mysql> quit;

shell> mysql -uzabbix -p<password> zabbix < database/mysql/schema.sql

# stop here if you are creating database for Zabbix proxy

shell> mysql -uzabbix -p<password> zabbix < database/mysql/images.sql

shell> mysql -uzabbix -p<password> zabbix < database/mysql/data.sql

导入数据库

# 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

# /etc/init.d/mysqld start

4.编辑配置文件 zabbix_server.conf

# vi /etc/zabbix/zabbix_server.conf

DBHost=localhost

DBName=zabbix

DBUser=zabbix

DBPassword=zabbix

5.zabbix

# service zabbix-server start

6.配置PHP

# vim /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

apache

# service httpd restart

7.zabbix安装

浏览器打(如有防火开启端口)

http://xxx.xxx.xxx/zabbix

username/password is Admin/zabbix

安装完成

 

猜你喜欢

转载自886.iteye.com/blog/2311648