RPM软件可以包安装zabbix
RPM包安装zabbix1,安装yum源Zabbix 2.4 for RHEL6, Oracle Linux 6, CentOS 6: # rpm -ivh zabbix/2.4/rhel/6/x86_64/zabbix-release-2.4-1.el6.noarch.rpm安装好,会生成一个rpm源2,安装zabbix包# yum install zabbix-server-mysql zabbix-web-mysql -y也可以安装agent端# yum install zabbix-agent –y3,创建并初始化数据库如果没有mysql可以安装一下# yum install -y mysql-server# service mysqld restart# mysqlmysql> 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/# lsdata.sqlimages.sqlschema.sql# mysql -uroot zabbix < schema.sql# mysql -uroot zabbix < images.sql# mysql -uroot zabbix < data.sql注:如果只做代理的话,可以只导入schema.sql4,修改zabbix_server.conf# vim /etc/zabbix/zabbix_server.confDBHost=localhostDBName=zabbixDBUser=zabbixDBPassword=zabbix5,修改zabbix.conf# vim /etc/httpd/conf.d/zabbix.conf修改# php_value date.timezone Europe/Riga为php_value date.timezone Asia/Shanghai6,启动zabbix并浏览器访问# service zabbix-server start浏览器输入http://ip/zabbix用户名默认Admin,密码默认zabbix登录成功,显示如下:
原创:zaishuiyixia
谢谢分享
页:
[1]