zabbix 安装
系统环境
(1)
[root@localhost]# cat /etc/issue CentOS release 6.2 (Final) Kernel \r on an \m
(2)
[root@localhost]# uname -a Linux localhost.localdomain 2.6.32-220.el6.i686 #1 SMP Tue Dec 6 16:15:40 GMT 2011 i686 i686 i386 GNU/Linux
版本Cent 6.2 64位 内核为 2.6.32-220
2. 更新yum 仓库 ziabbx源 --最简单的安装方式(比 make install简单,省时间)
[root@localhost etc]# cd yumyum/ yum.conf yum.repos.d/ [root@localhost etc]# cd yum.repos.d/ [root@localhost yum.repos.d]# ls CentOS-Base.repo CentOS-Debuginfo.repo CentOS-Media.repo
[root@localhost yum.repos.d]# rpm -ivh http://repo.zabbix.com/zabbix/2.2/rhel/6/x86_64/zabbix-release-2.2-1.el6.noarch.rpm noarch是no architecture的缩写,说明这个包可以在各个不同的cpu上使用 [root@localhost yum.repos.d]# ls CentOS-Base.repo CentOS-Debuginfo.repo CentOS-Media.repo zabbix.repo
[root@localhost yum.repos.d]# yum list zabbix-2.2.9 Loaded plugins: fastestmirror, refresh-packagekit, : security yum Loading mirror speeds from cached hostfile * base: mirrors.skyshe.cn * extras: mirrors.skyshe.cn * updates: mirrors.zju.edu.cn Available Packages zabbix.i686 2.2.9-1.el6 zabbix [root@localhost yum.repos.d]#
3.选择安装 zabbix-2.2.9
需要安装7个rpm包
yum install zabbix-2.2.9-1 zabbix-sender-2.2.9 zabbix-web-2.2.9 zabbix-server-mysql-2.2.9
yum install zabbix-agent-2.2.9 zabbix-server-2.2.9 zabbix-web-mysql-2.2.9 zabbix-get-2.2.9
yum install zabbix-web-mysql-2.2.9 出错?
Error: zabbix-web-pgsql conflicts with zabbix-web-mysql Error: zabbix-web-mysql conflicts with zabbix-web-pgsql You could try using --skip-broken to work around the problem You could try running: rpm -Va --nofiles --nodigest
zabbix-web-pgsql 与 zabbix-web-mysql 冲突
[root@localhost yum.repos.d]# rpm -qa | grep zabbix zabbix-2.2.10-1.el6.i686 zabbix-get-2.2.9-1.el6.i686 zabbix-server-2.2.9-1.el6.i686 zabbix-web-pgsql-2.2.9-1.el6.noarch zabbix-web-2.2.9-1.el6.noarch zabbix-release-2.2-1.el6.noarch zabbix-sender-2.2.9-1.el6.i686 zabbix-server-mysql-2.2.9-1.el6.i686 zabbix-agent-2.2.9-1.el6.i686 [root@localhost yum.repos.d]#
查询是先安装了 zabbix-web-pgsql-2.2.9-1.el6.noarch RPM包,估计zabbix默认为pgsql数据库
[root@localhost yum.repos.d]# yum erase zabbix-web-pgsql-2.2.9-1.el6.noarch
删除 zabbix-web-pgsql-2.2.9-1.el6.noarch
Dependencies Resolved =============================================================================================================================================== Package Arch Version Repository Size===============================================================================================================================================Removing: zabbix-web-pgsql noarch 2.2.9-1.el6 @zabbix 0.0 Removing for dependencies: zabbix-web noarch 2.2.9-1.el6 @zabbix 26 M Transaction Summary===============================================================================================================================================Remove 2 Package(s)
[root@localhost yum.repos.d]#yum install zabbix-web-mysql-2.2.9
安装
Dependencies Resolved =============================================================================================================================================== Package Arch Version Repository Size===============================================================================================================================================Installing: zabbix-web-mysql noarch 2.2.9-1.el6 zabbix 14 kInstalling for dependencies: php-mysql i686 5.3.3-46.el6_6 updates 83 k zabbix-web noarch 2.2.9-1.el6 zabbix 4.5 M Transaction Summary===============================================================================================================================================Install 3 Package(s)
这样,重新安排一下安装顺序
yum install zabbix-2.2.9-1 zabbix-sender-2.2.9
yum install zabbix-server-mysql-2.2.9 zabbix-web-mysql-2.2.9
yum install zabbix-agent-2.2.9 zabbix-server-2.2.9 zabbix-get-2.2.9
zabbix-web-2.2.9会在yum安装zabbix-web-mysql-2.2.9 时自动安装上
[root@localhost yum.repos.d]# rpm -qa | grep zabbix zabbix-2.2.10-1.el6.i686 zabbix-get-2.2.9-1.el6.i686 zabbix-server-2.2.9-1.el6.i686 zabbix-release-2.2-1.el6.noarch zabbix-sender-2.2.9-1.el6.i686 zabbix-web-mysql-2.2.9-1.el6.noarch zabbix-server-mysql-2.2.9-1.el6.i686 zabbix-web-2.2.9-1.el6.noarch zabbix-agent-2.2.9-1.el6.i686 [root@localhost yum.repos.d]#