Changes between Version 2 and Version 3 of ganglia


Ignore:
Timestamp:
08/24/2012 04:48:29 PM (14 years ago)
Author:
liaojiaohe
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ganglia

    v2 v3  
    44 
    55先安装一些依赖库,反正缺什么就装什么,因为测试的机不能直接上网,需要先下载最新的安装包 
     6 
     7== 安装需要lib == 
     8tar zxvf pixman-0.26.2.tar.gz [[BR]] 
     9cd  pixman-0.26.2[[BR]] 
     10make[[BR]] 
     11make install 
     12 
     13tar zxvf libpng-1.5.12.tar.gz [[BR]] 
     14cd  libpng-1.5.12[[BR]] 
     15make[[BR]] 
     16make install 
     17 
     18tar zxvf freetype-2.3.5.tar.gz [[BR]] 
     19cd freetype-2.3.5[[BR]] 
     20make[[BR]] 
     21make install 
     22 
     23ar zxvf fontconfig-2.4.2.tar.gz [[BR]] 
     24cd fontconfig-2.4.2[[BR]] 
     25make[[BR]] 
     26make install 
     27 
     28export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig 
     29 
     30 
    631== 安装apr以及apr-util == 
    732 
    833tar zxvf  apr-1.4.6.tar.gz[[BR]] 
    9  
    1034cd apr-1.4.6[[BR]] 
    11  
    1235./configure [[BR]] 
    13  
    1436make[[BR]] 
    15  
    1637make install 
    1738 
    1839tar zxvf apr-util-1.4.1.tar.gz[[BR]] 
    19  
    2040cd apr-util-1.4.1[[BR]] 
    21  
    2241./configure --with-apr=/usr/local/apr[[BR]] 
    23   
    24 make[[BR]] 
    25  
     42 make[[BR]] 
    2643make install 
    2744 
     
    2946 
    3047/bin/cp -f /usr/local/apr/include/apr-1/* /usr/local/apr/include/[[BR]] 
    31  
    3248mkdir -p /usr/local/apr/lib64[[BR]] 
    33  
    3449/bin/cp -a -f /usr/local/apr/lib/* /usr/local/apr/lib64/ 
    35  
    3650 
    3751== 安装confuse == 
    3852 
    3953tar zxvf confuse-2.7.tar.gz[[BR]] 
    40  
    4154cd confuse-2.7[[BR]] 
    42  
    4355./configure CFLAGS=-fPIC --disable-nls [[BR]] 
    44  
    4556make[[BR]] 
    46  
    4757make install 
    48  
    4958 
    5059== 安装pcre == 
    5160 
    5261tar zxvf  pcre-8.31.tar.gz[[BR]] 
    53  
    5462cd pcre-8.31[[BR]] 
    55  
    5663./configure [[BR]] 
    57  
    5864make [[BR]] 
    59  
    6065make install 
    6166 
     
    6368 
    6469tar zxvf  ganglia-3.4.0 .tar.gz[[BR]] 
     70cd ganglia-3.4.0 [[BR]] 
     71./configure --with-libapr=/usr/local/apr --with-gmetad --enable-gexec --enable-status --sysconfdir=/etc/ganglia[[BR]] 
     72make [[BR]] 
     73make install 
    6574 
    66 cd ganglia-3.4.0 [[BR]] 
    6775 
    68 ./configure --with-libapr=/usr/local/apr[[BR]] 
     76== 服务端配置 == 
    6977 
    70 make [[BR]] 
     78创建rrdtool数据目录,看$ganglia-3.2.0/web/conf.php里面的gmetad_root变量,并根据apache的运行用户创建权限,例如apache运行于hadoop用户上 。 
     79mkdir  -p /data/ganglia/dwoo 
     80mkdir  -p /data/ganglia/rrds 
     81chown -R hadoop:hadoop /data/ganglia 
    7182 
    72 make install 
     83配置一个数据源,修改/etc/ganglia/gmetad.conf文件,同时将运行用户设置为rrdtool的目录权限用户,例如hadoop用户 
     84data_source "suc" localhost 
     85setuid_username "hadoop" 
     86 
     87其中suc是数据源的名称,客户端分组会依赖此名称,后面会提到。 添加自启动脚本 
     88/bin/cp -f gmetad/gmetad.init /etc/init.d/gmetad 
     89/bin/cp -f /usr/local/ganglia/sbin/gmetad /usr/sbin/gmetad 
     90chkconfig -add gmetad 
     91启动gmetad服务 
     92service gmetad start 
     93看见Starting GANGLIA gmetad: [ OK ]就代表运行正常了。