ganglia安装配置-01.docx

泪湿孤枕 提交于 2019-12-07 14:54:04

参考资料:

http://chenjiuling.blog.51cto.com/3057028/949221

http://blog.javachen.com/2014/01/25/how-to-install-ganglia-on-centos6.html

1、安装前准备工作

事先安装ganglia依赖的软件。

yum install y gcc gcc-c++ libpng freetype zlib libdbi apr.* apr-util ibxml2-devel   pkg-config glib pixman pango pango-devel freetye-devel fontconfig cairo   cairo-devel libart_lgpl libart_lgpl-devel


2httpd安装

1)、开机自启动httpd服务

[root@master ~]# chkconfig | grep httpd

httpd           0:off     1:off     2:off     3:off     4:off     5:off     6:off

[root@master ~]# chkconfig httpd on

[root@master ~]# chkconfig | grep httpd

httpd           0:off     1:off     2:on     3:on     4:on     5:on     6:off

 

2)、启动服务进行测试

[root@master ~]# service httpd start

Starting httpd: httpd: Could not reliably determine the server's   fully qualified domain name, using 192.168.57.134 for ServerName

                                                             [  OK  ]

[root@master ~]#

 

参考资料:

http://yhz.me/blog/Install-Ganglia-On-CentOS.html

http://boendev.iteye.com/blog/1750615

3、配置yum

 

参考资料:http://yhz.me/blog/Install-Ganglia-On-CentOS.html

wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo

 

rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm

 

yum makecache

 

 

4server端(gmetad所在位置)

1)、gmetadgmondganglia-web  yum安装

参考资料:http://blog.javachen.com/2014/01/25/how-to-install-ganglia-on-centos6.html

[root@datanode1 ~]# yum install rrdtool ganglia   ganglia-gmetad ganglia-gmond ganglia-web

 

安装报错如下:

解决方案:


 

[root@datanode1 ~]# rpm -Uvh   http://mirror.steadfast.net/centos/5/os/x86_64//CentOS/dejavu-lgc-fonts-2.10-1.noarch.rpm

Retrieving   http://mirror.steadfast.net/centos/5/os/x86_64//CentOS/dejavu-lgc-fonts-2.10-1.noarch.rpm

warning: /var/tmp/rpm-tmp.V4hls9: Header V3 DSA/SHA1 Signature,   key ID e8562897: NOKEY

Preparing...                  ########################################### [100%]

   1:dejavu-lgc-fonts         ########################################### [100%]

[root@datanode1 ~]#

 

继续安装执行:

[root@datanode1 ~]# yum install rrdtool ganglia ganglia-gmetad   ganglia-gmond ganglia-web

 

 

安装完成。

2)、下载ganglia-web

[root@datanode1 ganglia]# wget http://sourceforge.net/projects/ganglia/files/ganglia-web/3.5.12/ganglia-web-3.5.12.tar.gz/download

[root@datanode1 ganglia]# tar zxvf ganglia-web-3.5.12.tar.gz

 

编译报错如下:

解决方案:

 


标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!