• Ubuntu 12.04安装Graphite


    安装必须的软件包

    sudo apt-get install libapache2-mod-python
    sudo apt-get install libapache2-mod-wsgi
    sudo apt-get install pkg-config
    sudo apt-get install python-dev
    sudo apt-get install memcached
    sudo apt-get install python-cairo
    sudo apt-get install python-pip
    sudo apt-get install libbz2-dev
    sudo apt-get install python-dev libldap2-dev libsasl2-dev libssl-dev

    sudo easy_install pip

    pip install django
    pip install django-tagging
    pip install python-memcached
    pip install twisted
    pip install txamqp
    pip install python-ldap

    sudo apt-get install libcairo2-dev

    安装pycariro的2版本

    wget http://cairographics.org/releases/py2cairo-1.10.0.tar.bz2
    tar xvfj py2cairo-1.10.0.tar.bz2
    cd py2cairo-1.10.0
    ./waf configure
    ./waf build
    sudo ./waf install

    安装whisper,carbon以及graphite-web

    git clone https://github.com/graphite-project/whisper.git
    cd whisper
    git checkout 0.9.x
    sudo python setup.py install
    cd ..

    git clone https://github.com/graphite-project/carbon.git
    cd carbon
    git checkout 0.9.x
    sudo python setup.py install
    cd ..

    git clone https://github.com/graphite-project/graphite-web.git
    cd graphite-web
    git checkout 0.9.x
    ./check-dependencies.py
    sudo python setup.py install --record install_files.txt
    cd ..

    修改配置文件

    cd /opt/graphite/conf
    sudo cp carbon.conf.example carbon.conf
    sduo cp storage-schemas.conf.example storage-schemas.conf
    sudo cp graphite.wsgi.example graphite.wsgi

    在apache2的配置地方建立vhost配置文件

    建立graphite的数据库

    cd /opt/graphite/webapp/graphite
    sudo python manage.py syncdb

    启动

    sudo service apache2 start

    sudo ./carbon-cache.py start

    example倒入数据即可

  • 相关阅读:
    SQL Sever语言 存储过程及触发器
    计蒜客 挑战难题 移除数组中的重复元素
    projecteuler Sum square difference
    码农谷 求前N项之和
    projecteuler Smallest multiple
    计蒜客 挑战难题 寻找插入位置
    Largest palindrome product
    计蒜客 挑战难题 元素移除
    码农谷 球从M米高度自由下落第N次落地时反弹的高度
    挑战难题 奇怪的国家
  • 原文地址:https://www.cnblogs.com/noblog/p/3390241.html
Copyright © 2020-2023  润新知