Difference between revisions of "HowTo/InstallGraphite"

From LunaSys
Jump to navigation Jump to search
Line 4: Line 4:
 
== Required packages ==
 
== Required packages ==
  
  apt-get install bzr python-sqlite python-memcache python-django python-cairo libapache2-mod-python python-zope.interface python-django-tagging python-twisted libapache2-mod-wsgi
+
  apt-get install bzr python-sqlite python-memcache python-django python-cairo libapache2-mod-python python-zope.interface python-django-tagging python-twisted libapache2-mod-wsgi python-simplejson
  
 
  bzr branch lp:graphite
 
  bzr branch lp:graphite

Revision as of 20:32, 5 February 2012

Taken from [1] And [2]

Required packages

apt-get install bzr python-sqlite python-memcache python-django python-cairo libapache2-mod-python python-zope.interface python-django-tagging python-twisted libapache2-mod-wsgi python-simplejson
bzr branch lp:graphite
cd graphite/
pushd whisper
python setup.py install
popd
pushd carbon
python setup.py install
pushd /opt/graphite/conf
cp carbon.conf.example carbon.conf
cp storage-schemas.conf.example storage-schemas.conf
popd
popd
python check-dependencies.py
bzr branch lp:txamqp
cd txamqp/
python setup.py install
cd ..
python setup.py install
=> setup apache wsgi
cp /opt/graphite/conf/graphite.wsgi.example /opt/graphite/conf/graphite.wsgi
cp /root/graphite/examples/example-graphite-vhost.conf /etc/apache2/sites-enabled/graphite.conf
mkdir /etc/apache2/wsgi
chown www-data /etc/apache2/wsgi
vi /etc/apache2/sites-enabled/graphite.conf
=> setup servername, wsgi socket path, etc..
popd 
cd /opt/graphite/webapp/graphite
python manage.py syncdb
=> setup admin user
chown -R www-data:www-data /opt/graphite/storage/
vi settings.py
=> setup database, etc..
cp local_settings.py.example local_settings.py