「腾达签名」 - 解决苹果app/ipa/tf/ios企业超级签名下载掉签难题「腾达签名」

专注IOS苹果签名内测
解决APP签名下载难题

centos安装ganglia

centos安装ganglia-「腾达签名」

一、安装A.M.P环境

yum install -y httpd mysql mysql-server php php-mysql net-snmp net-snmp-utils

二、编译安装基本环境

源码安装rrdtool没成功,依赖太多了,下面进行yum 安装rrdtool,首先加入dag的yum.

[root@localhost]$ cd /etc/yum.repos.d/
[root@localhost]$ vim dag.repo

[dag]
name=Dag RPM Repository for Red Hat Enterprise Linux
baseurl=http://apt.sw.be/redhat/el$releasever/en/$basearch/dag
gpgcheck=1
gpgkey=http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt
enabled=1

安装相关依赖:

[root@localhost]#yum -y install apr-devel apr-util check-devel cairo-devel pango-devel libxml2-devel 
rpmbuild glib2-devel dbus-devel freetype-devel fontconfig-devel gcc-c++ expat-devel 
python-devel libXrender-devel zlib libpng freetype libjpeg fontconfig gd libxml2 
pcre pcre-devel libpcre libconfuse libart_lgpl-devel
[root@localhost]# yum install -y rrdtool perl-rrdtool rrdtool-devel

不安装rrdtool-devel在编译ganglia时总是有错误

三、安装ganglia

wget http://download.fedora.redhat.com/pub/epel/5/x86_64/libconfuse-2.5-4.el5.x86_64.rpm(yum可以安装)
wget http://download.fedora.redhat.com/pub/epel/5/x86_64/libconfuse-devel-2.5-4.el5.x86_64.rpm(yum可以安装)

rpm -ivh libconfuse-2.5-4.el5.x86_64.rpm
rpm -ivh libconfuse-devel-2.5-4.el5.x86_64.rpm

wget http://cdnetworks-kr-1.dl.sourceforge.net/project/ganglia/ganglia%20monitoring%20core/3.1.7/ganglia-3.1.7.tar.gz(http://ganglia.info/下载)

tar zxvf ganglia-3.1.7.tar.gz
cd ganglia-3.1.7
./configure --with-gmetad --sysconfdir=/etc/ganglia
make
make install

cd ganglia-3.1.7
mkdir -p /var/www/html/ganglia/
cp -a web/* /var/www/html/ganglia/
cp gmetad/gmetad.init /etc/rc.d/init.d/gmetad
cp gmond/gmond.init /etc/rc.d/init.d/gmond
gmond -t | tee /etc/ganglia/gmond.conf
mkdir -p /var/lib/ganglia/rrds
chmod -R 777 /var/lib/ganglia/rrds
chkconfig --add gmetad
chkconfig --add gmond

测试:

启动ganglia:

service gmond restart
service gmetad restart
service httpd restart

网页访问http://ip/ganglia

编写一个主机地址文件:

vi mynodes

添加你的主机名或服务器ip到该文件,我这里只写了5台主机.

192.168.10.1
192.168.10.2
192.168.10.3
192.168.10.4
192.168.10.5

编写脚本实现服务的发布:

vi ganglia.sh

使用以下内容,这里使用的是64位OS,如果是32位OS,将下面的lib64改为lib:

for i in `cat mynodes`;
do
scp /usr/bin/gmetric $i:/usr/bin
scp /usr/sbin/gmond $i:/usr/sbin/gmond
ssh $i mkdir -p /etc/ganglia/
scp /etc/ganglia/gmond.conf $i:/etc/ganglia/
scp /etc/init.d/gmond $i:/etc/init.d/
scp /usr/lib64/libganglia-3.1.7.so.0 $i:/usr/lib64/
scp /lib64/libexpat.so.1 $i:/lib64/
scp /usr/lib64/libconfuse.so.0 $i:/usr/lib64/
scp /usr/lib64/libapr-1.so.0 $i:/usr/lib64/
scp -r /usr/lib64/ganglia $i:/usr/lib64/
ssh $i service gmond startdone

网页就可以看到这台服务器了.
苹果签名www.nanti.net

企业签名www.nanti.net

超级签名www.nanti.net

TF签名www.nanti.net

centos安装ganglia-「腾达签名」
本原创文章未经允许不得转载 | 当前页面:「腾达签名」 » centos安装ganglia

评论