安裝必須的軟件包python
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-devgit
sudo easy_install pipgithub
pip install django
pip install django-tagging
pip install python-memcached
pip install twisted
pip install txamqp
pip install python-ldapweb
sudo apt-get install libcairo2-dev數據庫
安裝pycariro的2版本apache
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 installdjango
安裝whisper,carbon以及graphite-webapp
git clone https://github.com/graphite-project/whisper.git
cd whisper
git checkout 0.9.x
sudo python setup.py install
cd ..webapp
git clone https://github.com/graphite-project/carbon.git
cd carbon
git checkout 0.9.x
sudo python setup.py install
cd ..memcached
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倒入數據便可