官方安装说明:
https://www.zabbix.com/documentation/2.4/manual/installation/install_from_packages#red_hat_enterprise_linux_centos
源码包安装:http://it1693.blog.51cto.com/2342744/1609794
Zabbix 2.4 for RHEL6:
# 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
#rpm �Civh http://repo.zabbix.com/zabbix/2.4/rhel/7/x86_64/zabbix-release-2.4-1.el7.noarch.rpm
Zabbix服务器的示例为mysql数据库和web前端。
1、首先安装LAMP环境,可使用yum的快速安装方法
2、安装Zabbix
# yum install zabbix-server-mysql zabbix-web-mysql zabbix-agent zabbix-get zabbix-sender
Mysql> mysql �Curoot �Cc
Mysql>CREATE DATABASE zabbix CHARACTER SET utf8 COLLATE utf8_bin;
Mysql>grant all privileges on zabbix.* to 'zabbix'@'%' identified by '12345';
Mysql>flush privileges;
# cd /usr/share/doc/zabbix-server-mysql-2.4.6/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=12345
# vi /etc/php.ini
date.timezone = Asia/Shanghai #设置时区
以下是官方推荐设置:
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
/etc/init.d/zabbix-server start
/etc/init.d/mysqld start
/etc/init.d/httpd start
/etc/init.d/zabbix-agent start
[root@wdds_3 ~]# chkconfig |egrep 'httpd|mysqld|zabbix*|iptables'
httpd 0:关闭 1:关闭 2:启用 3:启用 4:启用 5:启用 6:关闭
iptables 0:关闭 1:关闭 2:关闭 3:关闭 4:关闭 5:关闭 6:关闭
mysqld 0:关闭 1:关闭 2:启用 3:启用 4:启用 5:启用 6:关闭
zabbix-agent 0:关闭 1:关闭 2:启用 3:启用 4:启用 5:启用 6:关闭
zabbix-server 0:关闭 1:关闭 2:启用 3:启用 4:启用 5:启用 6:关闭
[root@wdds_3 ~]# grep SELINUX=disabled /etc/selinux/config
SELINUX=disabled
浏览器访问:
http://10.0.0.63/zabbix/setup.php
This is the Zabbix “Welcome” screen. Enter the user name Admin with password zabbix to log in as a Zabbix superuser.