Last active
December 16, 2015 22:29
-
-
Save ashpool/5507438 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mkdir $GRAPHITE_INSTALL | |
cd $GRAPHITE_INSTALL | |
wget https://launchpad.net/graphite/0.9/0.9.10/+download/graphite-web-0.9.10.tar.gz | |
wget https://launchpad.net/graphite/0.9/0.9.10/+download/carbon-0.9.10.tar.gz | |
wget https://launchpad.net/graphite/0.9/0.9.10/+download/whisper-0.9.10.tar.gz | |
wget https://launchpad.net/graphite/0.9/0.9.10/+download/check-dependencies.py | |
wget http://pypi.python.org/packages/source/T/Twisted/Twisted-12.1.0.tar.bz2 | |
tar xfj Twisted-12.1.0.tar.bz2 | |
tar xfvz carbon-0.9.10.tar.gz | |
tar xfvz whisper-0.9.10.tar.gz | |
tar xfvz graphite-web-0.9.10.tar.gz | |
installPackage whisper-0.9.10 | |
installPackage Twisted-12.1.0 | |
installPackage carbon-0.9.10 | |
installPackage graphite-web-0.9.10 | |
cd /opt/graphite/conf | |
cp storage-schemas.conf.example storage-schemas.conf | |
#install apache mod | |
cp /opt/graphite/examples/example-graphite-vhost.conf /etc/httpd/conf.d/ | |
cp /opt/graphite/conf/graphite.wsgi.example /opt/graphite/conf/graphite.wsgi | |
mkdir -p /etc/httpd/wsgi | |
#configure graphite webapp | |
cd /opt/graphite/webapp/graphite | |
ln -s /usr/lib/python2.6/site-packages/django/ django | |
python2.6 manage.py syncdb --noinput | |
cp local_settings.py.example local_settings.py | |
chown -R apache:apache /opt/graphite/storage | |
python /opt/graphite/bin/carbon-cache.py stop | |
python /opt/graphite/bin/carbon-cache.py start | |
service httpd restart |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment