-
-
Save iambowen/8648652 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
# 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 |
db location : /var/lib/graphite-web/graphite.db
uncomment:
/etc/graphite-web/local_settings.py
Database setting
http://stackoverflow.com/questions/6454564/target-wsgi-script-cannot-be-loaded-as-python-module
chmod a+x /usr/share/graphite/graphite-web.wsgi
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
can't start server with error 503:
DatabaseError: attempt to write a readonly database