Created
July 2, 2014 22:34
-
-
Save EntilZha/dcea1ad24d126105d9c3 to your computer and use it in GitHub Desktop.
install_graphite_server
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
if [[ ! -f "/opt/graphite/bin/carbon-cache.py" ]]; then | |
wget -qNP /tmp https://github.com/downloads/graphite-project/whisper/whisper-0.9.10.tar.gz | |
tar -C /tmp -zxf /tmp/whisper-0.9.10.tar.gz | |
cd /tmp/whisper-0.9.10 | |
python setup.py install | |
wget -qNP /tmp https://github.com/downloads/graphite-project/carbon/carbon-0.9.10.tar.gz | |
tar -C /tmp -zxf /tmp/carbon-0.9.10.tar.gz | |
cd /tmp/carbon-0.9.10 | |
python setup.py install | |
rm -rf /opt/graphite/storage | |
mkdir /mnt/graphite_storage | |
chown www-data:www-data /mnt/graphite_storage | |
ln -s /mnt/graphite_storage /opt/graphite/storage | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
cat /tmp/install_graphite_server