背景:
阅读新闻
CentOS 5.5 Final下Ganglia安装详解
[日期:2011-05-12] 来源:Linux社区 作者:kirayuan [字体:]
2.2. 安装ganglia管理端(gmetad)
(1) 解压
tar zxvf ganglia-3.1.7.tar.gz
(2) 配置
./configure –prefix=/usr/local/ganglia –with-librrd=/usr/local/rrdtool –with-libapr=/usr/local/apr –with-libexpat=/usr/local/expat –with-libconfuse=/usr/local/confuse –with-gmetad –enable-gexec –enable-status
(3) 编译,安装
make
make install
(4) 为rrdtool创建数据存放目录
mkdir -p /var/lib/ganglia/rrds
chown -R nobody:nobody /var/lib/ganglia/rrds
(5) 将gmetad添加到系统服务
cp {ganglia解压目录}gmetad/gmetad.init /etc/init.d/gmetad
(6) 将gmetad命令加入到/usr/sbin/目录
cp /usr/local/ganglia/sbin/gmetad /usr/sbin/
(7) gmetad给 chkconfig托管
chkconfig –add gmetad
(8) 开启gmetad服务
service gmetad start
Starting GANGLIA gmetad: [ OK ]
见到[OK]字样说明启动成功。
2.3. 安装ganglia节点(gmond)
(1) 解压同gmetad
(2) 配置:比gmetad时少“–with-gmetad”参数
(3) ./configure –prefix=/usr/local/ganglia –with-librrd=/usr/local/rrdtool –with-libapr=/usr/local/apr –with-libexpat=/usr/local/expat –with-libconfuse=/usr/local/confuse –enable-gexec –enable-status
(4) 将gmond加入系统服务
cp {ganglia解压目录}gmon/gmond.init /etc/init.d/gmond
(5) 将gmond命令加入到/usr/sbin/目录
cp /usr/local/ganglia/sbin/gmond /usr/sbin/
(9) 生成gmond的默认配置文件
gmond --default_config>/etc/ganglia/gmond.conf
(10) 将gmond给 chkconfig托管
chkconfig –add gmond
(11) 修改gmond配置文件/etc/ganglia/gmond.conf
cluster {
name = "test cluster"
owner = "nobody"
latlong = "unspecified"
url = "unspecified"
}
(12) 开启gmond服务
service gmond start
Starting GANGLIA gmetad: [ OK ]
(6) 见到[OK]字样说明启动成功。
2.4. 安装ganglia web页面
2.4.1. 安装php
(1) 安装php-common
rpm -ivh /root/CentOS/php-common-5.1.6-27.el5.x86_64.rpm
(2) 安装php-cli
rpm -ivh /root/CentOS/php-cli-5.1.6-27.el5.x86_64.rpm
(3) 安装php
rpm -ivh /root/CentOS/php-5.1.6-27.el5.x86_64.rpm
(4) 安装php-gd
rpm -ivh /root/CentOS/php-gd-5.1.6-27.el5.x86_64.rpm
使用Eucalyptus打造自己的云测试平台(CentOS+Apache+MySQL)
本文评论 查看全部评论 (0)
尊重网上道德,遵守中华人民共和国的各项有关法律法规 承担一切因您的行为而直接或间接导致的民事或刑事法律责任 本站管理人员有权保留或删除其管辖留言中的任意内容 本站有权在网站内转载或引用您的评论 参与本评论即表明您已经阅读并接受上述条款
评论声明
最新资讯