标签:des style class blog code java
1.这里安装的是3.1.7版本,web前端是最新版本,安装前期环境(yum源用的是本地的)
yum -y insatll php php-gd rrdtools apr-devel apr-util
2.下载科大的rpm包,安装ganglia,这里用的是rpm包安装,及时不联网的机器也可以通过其它服务器scp文件到本机,客户端可以不安装gmetad,删除gmetad包再执行rpm包安装命令
wget
http://mirrors.ustc.edu.cn/epel/6Server/i386/ganglia-3.1.7-6.el6.i686.rpm
wget
http://mirrors.ustc.edu.cn/epel/6Server/i386/ganglia-devel-3.1.7-6.el6.i686.rpm
wget
http://mirrors.ustc.edu.cn/epel/6Server/i386/ganglia-gmetad-3.1.7-6.el6.i686.rpm
wget
http://mirrors.ustc.edu.cn/epel/6Server/i386/ganglia-gmond-3.1.7-6.el6.i686.rpm
wget
http://mirrors.ustc.edu.cn/epel/6Server/i386/ganglia-gmond-python-3.1.7-6.el6.i686.rpm
wget
http://mirrors.ustc.edu.cn/epel/6Server/i386/libconfuse-2.6-2.el6.rf.x86_64.rpm
wget
http://mirrors.ustc.edu.cn/epel/6Server/i386/libconfuse-devel-2.6-2.el6.rf.x86_64.rpm
rpm
-ivh ganglia*
rpm -ivh libconfuse*
3.修改配置文件
cd /etc/ganglia vi gmetad.conf data_source "hadoop" localhost /*集群名称,数据源,本机为服务端*/ vi /etc/ganglia/gmond.conf cluster { name = "hadoop" /*集群名称*/ ... udp_send_channel { /* mcast_join = 239.2.11.71 */ /*注释掉组播*/ host=192.168.89.99 /*发送给安装gmetad的机器*/ ...
4.安装web前端
wget
http://cznic.dl.sourceforge.net/project/ganglia/ganglia-web/ganglia-web-3.5.9.tar.gz
tar
zxf ganglia-web-3.5.9.tar.gz
cd ganglia-web-3.5.9
vi MakeFile
# Location where gweb should be installed to (excluding conf, dwoo
dirs).
GDESTDIR = /var/www/ganglia
# Gweb statedir (where conf dir and Dwoo templates dir are
stored)
GWEB_STATEDIR = /var/lib/ganglia
# Gmetad rootdir (parent location of rrd folder)
GMETAD_ROOTDIR =
/var/lib/ganglia
APACHE_USER = root /*后面不用有空格*/
make insatll
5.启动服务,如果在服务端主机上的hosts文件有客户端主机的ip地址和主机名映射的话,前台nodes部分会显示主机名
/etc/init.d/gmetad start /*服务端不需要执行*/ /etc/init.d/gmond start
CentOS 6.4安装Ganglia,布布扣,bubuko.com
标签:des style class blog code java
原文地址:http://www.cnblogs.com/ahauzyy/p/3782722.html