Changes between Version 2 and Version 3 of ganglia
- Timestamp:
- 08/24/2012 04:48:29 PM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
ganglia
v2 v3 4 4 5 5 先安装一些依赖库,反正缺什么就装什么,因为测试的机不能直接上网,需要先下载最新的安装包 6 7 == 安装需要lib == 8 tar zxvf pixman-0.26.2.tar.gz [[BR]] 9 cd pixman-0.26.2[[BR]] 10 make[[BR]] 11 make install 12 13 tar zxvf libpng-1.5.12.tar.gz [[BR]] 14 cd libpng-1.5.12[[BR]] 15 make[[BR]] 16 make install 17 18 tar zxvf freetype-2.3.5.tar.gz [[BR]] 19 cd freetype-2.3.5[[BR]] 20 make[[BR]] 21 make install 22 23 ar zxvf fontconfig-2.4.2.tar.gz [[BR]] 24 cd fontconfig-2.4.2[[BR]] 25 make[[BR]] 26 make install 27 28 export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig 29 30 6 31 == 安装apr以及apr-util == 7 32 8 33 tar zxvf apr-1.4.6.tar.gz[[BR]] 9 10 34 cd apr-1.4.6[[BR]] 11 12 35 ./configure [[BR]] 13 14 36 make[[BR]] 15 16 37 make install 17 38 18 39 tar zxvf apr-util-1.4.1.tar.gz[[BR]] 19 20 40 cd apr-util-1.4.1[[BR]] 21 22 41 ./configure --with-apr=/usr/local/apr[[BR]] 23 24 make[[BR]] 25 42 make[[BR]] 26 43 make install 27 44 … … 29 46 30 47 /bin/cp -f /usr/local/apr/include/apr-1/* /usr/local/apr/include/[[BR]] 31 32 48 mkdir -p /usr/local/apr/lib64[[BR]] 33 34 49 /bin/cp -a -f /usr/local/apr/lib/* /usr/local/apr/lib64/ 35 36 50 37 51 == 安装confuse == 38 52 39 53 tar zxvf confuse-2.7.tar.gz[[BR]] 40 41 54 cd confuse-2.7[[BR]] 42 43 55 ./configure CFLAGS=-fPIC --disable-nls [[BR]] 44 45 56 make[[BR]] 46 47 57 make install 48 49 58 50 59 == 安装pcre == 51 60 52 61 tar zxvf pcre-8.31.tar.gz[[BR]] 53 54 62 cd pcre-8.31[[BR]] 55 56 63 ./configure [[BR]] 57 58 64 make [[BR]] 59 60 65 make install 61 66 … … 63 68 64 69 tar zxvf ganglia-3.4.0 .tar.gz[[BR]] 70 cd ganglia-3.4.0 [[BR]] 71 ./configure --with-libapr=/usr/local/apr --with-gmetad --enable-gexec --enable-status --sysconfdir=/etc/ganglia[[BR]] 72 make [[BR]] 73 make install 65 74 66 cd ganglia-3.4.0 [[BR]]67 75 68 ./configure --with-libapr=/usr/local/apr[[BR]] 76 == 服务端配置 == 69 77 70 make [[BR]] 78 创建rrdtool数据目录,看$ganglia-3.2.0/web/conf.php里面的gmetad_root变量,并根据apache的运行用户创建权限,例如apache运行于hadoop用户上 。 79 mkdir -p /data/ganglia/dwoo 80 mkdir -p /data/ganglia/rrds 81 chown -R hadoop:hadoop /data/ganglia 71 82 72 make install 83 配置一个数据源,修改/etc/ganglia/gmetad.conf文件,同时将运行用户设置为rrdtool的目录权限用户,例如hadoop用户 84 data_source "suc" localhost 85 setuid_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 90 chkconfig -add gmetad 91 启动gmetad服务 92 service gmetad start 93 看见Starting GANGLIA gmetad: [ OK ]就代表运行正常了。
![(please configure the [header_logo] section in trac.ini)](http://www1.pconline.com.cn/hr/2009/global/images/logo.gif)