Skip to content

Instantly share code, notes, and snippets.

@galanteh
Created November 5, 2019 18:27
Show Gist options
  • Save galanteh/1fee5951de05ef21c41a5359fe3504ee to your computer and use it in GitHub Desktop.
Save galanteh/1fee5951de05ef21c41a5359fe3504ee to your computer and use it in GitHub Desktop.
Installation of Graphite App over CentOS 7.5 on 80 port
# Install EPEL Repo
sudo yum install -y epel-release
# Update the OS
sudo yum -y update
# Install HTOP to monitor processes
sudo yum install -y htop
# Install Graphite and Carbon
sudo yum install -y graphite-web python-carbon
# Configuration - Change TimeZone and Security
sudo bash -c 'sed -i "s/Los_Angeles/Mexico_City/g" /etc/graphite-web/local_settings.py'
sudo bash -c 'sed -i "s/#TIME_ZONE/TIME_ZONE/g" /etc/graphite-web/local_settings.py'
sudo bash -c 'sed -i "s/Require local/Require all granted/g" /etc/httpd/conf.d/graphite-web.conf'
# Configuration - Initialize db
sudo /usr/lib/python2.7/site-packages/graphite/manage.py syncdb
# Restart and Check Port 80
sudo chown -R apache. /var/lib/graphite-web
sudo systemctl start carbon-cache
sudo systemctl enable carbon-cache
sudo systemctl restart httpd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment