Skip to content

Instantly share code, notes, and snippets.

@iambowen
Forked from GregMefford/setup-statsd-centos.sh
Last active January 4, 2016 16:39
Show Gist options
  • Save iambowen/8648652 to your computer and use it in GitHub Desktop.
Save iambowen/8648652 to your computer and use it in GitHub Desktop.
# First do a fresh install of CentOS 5.7 i386, server configuration (no GUI)
# This should be performed as root since it's going to be installing a bunch of stuff
# --- Update things to make sure we have the latest patches ---
# Add EPEL so we can get reasonably recent packages
rpm -Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
# --- Install all the packages --- #
yum -y install python-whisper python-carbon graphite-web python-memcached python-ldap httpd memcached
yum install -y nc
#set locale
echo "export LANG=en_US.UTF-8" >> ~/.bash_profile
source ~/.bash_profile
# ===== BEGIN MANUAL STEP =====
# run syncdb to setup the db and prime the authentication model (if you're using the DB model)
python /usr/lib/python2.6/site-packages/graphite/manage.py syncdb
# ===== END MANUAL STEP =====
# --- Allow HTTP through firewall --- #
iptables -I INPUT 5 -m state --state NEW -p tcp --dport 80 -j ACCEPT
iptables-save > /etc/sysconfig/iptables
#change ownership of webapp
chown -R apache:apache /usr/share/graphite/webapp
service carbon-cache start
service memcached start
service httpd start
#if you want the service to start automaticly use chkconfig
chkconfig carbon-cache on
chkconfig memcached on
chkconfig httpd on
#test
curl -v localhost
@iambowen
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment