I've been trying to understand how to setup systems from
the ground up on Ubuntu. I just installed redis onto
the box and here's how I did it and some things to look
out for.
To install:
| /* | |
| * Updated to use the function-based method described in http://www.phpied.com/social-button-bffs/ | |
| * Better handling of scripts without supplied ids. | |
| * | |
| * N.B. Be sure to include Google Analytics's _gaq and Facebook's fbAsyncInit prior to this function. | |
| */ | |
| (function(doc, script) { | |
| var js, | |
| fjs = doc.getElementsByTagName(script)[0], |
| #!/bin/sh | |
| # Setup Repo and Install | |
| echo "deb http://www.rabbitmq.com/debian/ testing main" > /etc/apt/sources.list.d/rabbitmq.list | |
| wget http://www.rabbitmq.com/rabbitmq-signing-key-public.asc | |
| apt-key add rabbitmq-signing-key-public.asc | |
| apt-get update | |
| apt-get install rabbitmq-server -y | |
| service rabbitmq-server start |
| #!/bin/bash | |
| # Add the EPEL repo if not added already | |
| yum repolist | grep -i epel | |
| if [ $? -ne 0 ]; then | |
| rpm -Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm | |
| fi | |
| # Install the preqs | |
| yum install gcc-c++ httpd python-devel python-pip python-sqlite2 \ |
This gist contains everything you need to install StatsD and Graphite on CentOS 6.3. Unless I forgot something. If I did, shoot a reminder email to noah at one more bug dot com. tl;dr: womm, ymmv, yolo.
I (mostly) followed the steps shown in the EZUnix wiki
And I also referred back to this gist by Michael Grace
| #This is the "site config" for nginx | |
| upstream django { | |
| # Distribute requests to servers based on client IP. This keeps load | |
| # balancing fair but consistent per-client. In this instance we're | |
| # only using one uWGSI worker anyway. | |
| ip_hash; | |
| server unix:/tmp/uwsgi.sock; | |
| } | |
| server { |
| server { | |
| listen 8080 default_server deferred; | |
| charset utf-8; | |
| access_log /var/log/nginx/graphite.access.log; | |
| error_log /var/log/nginx/graphite.error.log; | |
| root /opt/graphite/webapp; | |
| location /static/admin/ { |
| #!/bin/bash | |
| # Install Ruby Centos 6 # | |
| ################# | |
| #get root access | |
| su - | |
| cd /tmp |
| server { | |
| listen 8080 default_server deferred; | |
| charset utf-8; | |
| access_log /var/log/nginx/graphite.access.log; | |
| error_log /var/log/nginx/graphite.error.log; | |
| root /opt/graphite/webapp; | |
| location /static/admin/ { |
| # You have your csv data and it looks like so... It's in a file named "my_data.csv" and we want to import it into a table named "my_things". | |
| "1", "Something", "0.50", "2013-05-05 10:00:00" | |
| "2", "Another thing", "1.50", "2013-06-05 10:30:00" | |
| # Now you want to import it, go to the command line and type: | |
| $ PGPASSWORD=PWHERE psql -h HOSTHERE -U USERHERE DBNAMEHERE -c "\copy my_things FROM 'my_data.csv' WITH CSV;" | |
| # Voila! It's impoted. Now if you want to wipe it out and import a fresh one, you would do this: |