RPM包安装zabbix
1,安装yum源 Zabbix 2.4 for RHEL6, Oracle Linux 6, CentOS 6: 安装好,会生成一个rpm源 2,安装zabbix包 # yum install zabbix-server-mysql zabbix-web-mysql -y 也可以安装agent端 # yum install zabbix-agent –y 3,创建并初始化数据库 如果没有mysql可以安装一下 # yum install -y mysql-server # service mysqld restart # mysql mysql> 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/ # ls data.sql images.sql schema.sql # mysql -uroot zabbix < schema.sql # mysql -uroot zabbix < images.sql # mysql -uroot zabbix < data.sql 注:如果只做代理的话,可以只导入schema.sql 4,修改zabbix_server.conf # vim /etc/zabbix/zabbix_server.conf DBHost=localhost DBName=zabbix DBUser=zabbix DBPassword=zabbix 5,修改zabbix.conf # vim /etc/httpd/conf.d/zabbix.conf 修改# php_value date.timezone Europe/Riga 为php_value date.timezone Asia/Shanghai 6,启动zabbix并浏览器访问 # service zabbix-server start 浏览器输入http://ip/zabbix 用户名默认Admin,密码默认zabbix 登录成功,显示如下:
原创:zaishuiyixia
|