真实的国产乱ⅩXXX66竹夫人,五月香六月婷婷激情综合,亚洲日本VA一区二区三区,亚洲精品一区二区三区麻豆

成都創(chuàng)新互聯(lián)網(wǎng)站制作重慶分公司

ganglia安裝教程(centos7)

ganglia 安裝教程

依賴軟件

  1. http://nchc.dl.sourceforge.net/project/pcre/pcre/8.32/pcre-8.32.tar.gz

    10年的徐水網(wǎng)站建設(shè)經(jīng)驗(yàn),針對(duì)設(shè)計(jì)、前端、開(kāi)發(fā)、售后、文案、推廣等六對(duì)一服務(wù),響應(yīng)快,48小時(shí)及時(shí)工作處理。全網(wǎng)整合營(yíng)銷推廣的優(yōu)勢(shì)是能夠根據(jù)用戶設(shè)備顯示端的尺寸不同,自動(dòng)調(diào)整徐水建站的顯示方式,使網(wǎng)站能夠適用不同顯示終端,在瀏覽器中調(diào)整網(wǎng)站的寬度,無(wú)論在任何一種瀏覽器上瀏覽網(wǎng)站,都能展現(xiàn)優(yōu)雅布局與設(shè)計(jì),從而大程度地提升瀏覽體驗(yàn)。成都創(chuàng)新互聯(lián)從事“徐水網(wǎng)站設(shè)計(jì)”,“徐水網(wǎng)站推廣”以來(lái),每個(gè)客戶項(xiàng)目都認(rèn)真落實(shí)執(zhí)行。

  • tar xvzf pcre-8.32.tar.gz

  • cd pcre-8.32 
    -./configure –prefix=/usr/local

  • make && make install

2.http://savannah.nongnu.org/download/confuse/confuse-2.7.tar.gz

  • tar xvzf confuse-2.7.tar.gz

  • cd confuse-2.7

  • CFLAGS=-fPIC ./configure –prefix=/usr/local –disable-nls

  • make CFLAGS=-fPIC

  • make CFLAGS=-fPIC install

3.http://nchc.dl.sourceforge.net/project/expat/expat/2.1.0/expat-2.1.0.tar.gz

  • tar -xvzf expat-2.1.0.tar.gz

  • cd expat-2.1.0

  • ./configure –prefix=/usr/local

  • make && make install

4.http://zlib.net/zlib-1.2.8.tar.gz

  • tar xvzf zlib-1.2.8.tar.gz

  • cd zlib-1.2.8

  • CFLAGS=-fPIC ./configure –prefix=/usr/local

  • make CFLAGS=-fPIC

  • make CFLAGS=-fPIC install

5.ftp://xmlsoft.org/libxml2/libxml2-2.7.8.tar.gz

  • tar xvzf libxml2-2.7.8.tar.gz

  • cd libxml2-2.7.8

  • ./configure –prefix=/usr/local –with-zlib=/usr/local

  • make && make install

6.http://oss.oetiker.ch/rrdtool/pub/rrdtool-1.4.8.tar.gz

  • tar xvzf rrdtool-1.4.8.tar.gz

  • cd rrdtool-1.4.8

  • export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig

  • ./configure –prefix=/usr/local

  • make && make install

7.http://cznic.dl.sourceforge.net/project/ganglia/ganglia%20monitoring%20core/3.6.0/ganglia-3.6.0.tar.gz

  • ./configure –enable-gexec

  • make && make install

ganglia配置

gmetad配置

在ganglia安裝目錄執(zhí)行如下操作

  • cp -a gmetad/gmetad.init /etc/init.d/gmetad

  • chkconfig –add gmetad

  • chkconfig –level 345 gmetad on

  • gmetad -t | tee /usr/local/etc/gmetad.conf

  • mkdir -p /var/lib/ganglia/rrds

  • chown nobody:nobody /var/lib/ganglia/rrds

配置gmetad.conf

1.修改gmetad.conf 中 data_source

data_source "hadoop201" hadoop201

gmond配置

  • cp -a gmond/gmond.init /etc/init.d/gmond

  • chkconfig –add gmond

  • chkconfig –level 345 gmond on

  • gmond -t | tee /usr/local/etc/gmond.conf

配置gmond.conf

修改 cluster中 name 為在gmetad.conf 中的data_source

 cluster {      
  name = "hadoop201"
  owner = "nobody"
  latlong = "unspecified"
  url = "unspecified"
}

Ganglia-web環(huán)境部署

  • tar xvzf ganglia-web-3.6.2.tar.gz -C /var/www/html/

  • cd /var/www/html/

  • mv ganglia-web-3.5.12 ganglia

  • chmod -R 777 /var/www/html/ganglia

  • cd /var/www/html/ganglia

  • cp conf_default.php conf.php

  • vim conf.php

conf.php中有些默認(rèn)配置和以上設(shè)置不一樣的需要進(jìn)行修改:

# Gmetad-webfrontend version. Used to check for updates.#$conf['gweb_root'] = "/var/www/html/ganglia";
$conf['gweb_confdir'] = "/var/www/html/ganglia";

include_once $conf['gweb_root'] . "/version.php";## 'readonly': No authentication is required.  All users may view all resources.  No edits are allowed.#  'enabled': Guest users may view public clusters.  Login is required to make changes.  #             An administrator must configure an authentication scheme and ACL rules.# 'disabled': Guest users may perform any actions, including edits.  No authentication is required.$conf['auth_system'] = 'readonly';## The name of the directory in "./templates" which contains the# templates that you want to use. Templates are like a skin for the# site that can alter its look and feel.#$conf['template_name'] = "default";## If you installed gmetad in a directory other than the default# make sure you change it here.## Where gmetad stores the rrd archives.$conf['gmetad_root'] = "/var/lib/ganglia";
$conf['rrds'] = "${conf['gmetad_root']}/rrds";# Where Dwoo (PHP templating engine) store compiled templates$conf['dwoo_compiled_dir'] = "${conf['gweb_confdir']}/dwoo/compiled";
$conf['dwoo_cache_dir'] = "${conf['gweb_confdir']}/dwoo/cache";# Where to store web-based configuration$conf['views_dir'] = $conf['gweb_confdir'] . '/conf';
$conf['conf_dir'] = $conf['gweb_confdir'] . '/conf';1234567891011121314151617181920212223242526272829303132333435363738

問(wèn)題及解決方式

  1. 編譯rrdtool 錯(cuò)誤 
    /.libs/librrd.so: undefined reference to xmlTextReaderValue@LIBXML2_2.4.30' 
    ./.libs/librrd.so: undefined reference to
    xmlTextReaderNodeType@LIBXML2_2.4.30’ 
    ./.libs/librrd.so: undefined reference to xmlStrdup@LIBXML2_2.4.30' 
    ./.libs/librrd.so: undefined reference to
    xmlTextReaderName@LIBXML2_2.4.30’ 
    ./.libs/librrd.so: undefined reference to xmlNewTextReaderFilename@LIBXML2_2.4.30' 
    ./.libs/librrd.so: undefined reference to
    xmlStrcasestr@LIBXML2_2.4.30’ 
    ./.libs/librrd.so: undefined reference to xmlFree@LIBXML2_2.4.30' 
    ./.libs/librrd.so: undefined reference to
    xmlTextReaderRead@LIBXML2_2.4.30’ 
    ./.libs/librrd.so: undefined reference to xmlFreeTextReader@LIBXML2_2.4.30' 
    ./.libs/librrd.so: undefined reference to
    xmlTextReaderGetParserLineNumber@LIBXML2_2.6.17’ 
    ./.libs/librrd.so: undefined reference to `xmlStrcasecmp@LIBXML2_2.4.30’

ganglia編譯必須依賴rrdtool,而rrdtool安裝不同機(jī)器可能出現(xiàn)莫名的安裝錯(cuò)誤,此時(shí)如果機(jī)器可以連接網(wǎng)絡(luò)可以使用 yum -y install rrdtool 方式安裝,但此時(shí)安裝后,編譯ganglia時(shí)仍然無(wú)法找到rrdtool相應(yīng)的庫(kù),此時(shí)可以采用如下方法,使ganglia編譯安裝成功:

下載rrdtool-1.4.8.tar.gz ,解壓后,將rrdtool-1.4.8/src/.libs 中相應(yīng)庫(kù)拷貝到如下目錄:

home/hadoop/為我本機(jī)rrdtool-1.4.8所在路徑:

cp /home/hadoop/rrdtool-1.4.8/src/.libs/.so /usr/local/lib/

cp /home/hadoop/rrdtool-1.4.8/src/.libs/*.a /usr/local/lib/

cp /home/hadoop/rrdtool-1.4.8/src/.libs/*.la /usr/local/lib/

cp /home/hadoop/rrdtool-1.4.8/src/rrd*.h /usr/local/include

效果展示

 ganglia安裝教程(centos7)


網(wǎng)頁(yè)標(biāo)題:ganglia安裝教程(centos7)
鏈接URL:http://weahome.cn/article/gphieh.html

其他資訊

在線咨詢

微信咨詢

電話咨詢

028-86922220(工作日)

18980820575(7×24)

提交需求

返回頂部