安装必须的软件包
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倒入数据即可