centos6 安装 zabbix 2.4

前端之家收集整理的这篇文章主要介绍了centos6 安装 zabbix 2.4前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

1.安装LAMP环境
yum install -y httpd
yum install -y MysqL MysqL-server MysqL-devel
yum install -y PHP PHP-MysqL PHP-gd PHP-ldap PHP-odbc PHP-pear
yum install -y net-snmp net-snmp-devel net-snmp-libs net-snmp-utilsPHP-snmp

2.安装服务端组件并导入数据库
rpm -ivh http://repo.zabbix.com/zabbix/2.4/rhel/6/x86_64/zabbix-release-2.4-1.el6.noarch.rpm
yum install -y zabbix-server-MysqL zabbix-web-MysqL
/etc/init.d/MysqLd restart
MysqLadmin -uroot password 'passwd'
MysqL -uroot -p'passwd'
create database zabbix character set utf8 collate utf8_bin;
grant all privileges on zabbix.* to zabbixuser@localhost identified by 'zabbixpass';
flush privileges;
exit
MysqL -uzabbixuser -p'zabbixpass' zabbix < schema.sql
MysqL -uzabbixuser -p'zabbixpass' zabbix < images.sql
MysqL -uzabbixuser -p'zabbixpass' zabbix < data.sql

3.配置服务端
vi /etc/zabbix/zabbix_server.conf
DBHost=localhost
DBName=zabbix
DBUser=zabbixuser
DBPassword=zabbixpass

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

4.设置开机自启动
/etc/init.d/httpd restart
/etc/init.d/zabbix-server restart
chkconfig MysqLd on
chkconfig zabbix-server on
chkconfig httpd on

5.安装zabbix
http://ip/zabbix
如果安装以上步骤安装的环境,填写好数据库用户名和密码一路下一步即可。(步骤略)
安装完成后,默认管理员用户名:Admin 密码:zabbix


6.安装客户端组件
rpm -ivh http://repo.zabbix.com/zabbix/2.4/rhel/6/x86_64/zabbix-release-2.4-1.el6.noarch.rpm
yum install -y zabbix-agent

7.配置客户端
vi /etc/zabbix/zabbix_agentd.conf
Server=192.168.88.60 #zibbix-server ip
ServerActive=192.168.88.60 #zibbix-server ip

/etc/init.d/zabbix-agent restartchkconfig zabbix-agent on

猜你在找的CentOS相关文章