Skip to content

Instantly share code, notes, and snippets.

View SagaieNet's full-sized avatar

SagaieNet

  • Sagaie.Net
  • Aix en Provence
View GitHub Profile
####################################
# BASIC REQUIREMENTS
# http://graphite.wikidot.com/installation
# http://geek.michaelgrace.org/2011/09/how-to-install-graphite-on-ubuntu/
# Last tested & updated 02/14/2013
####################################
sudo apt-get update
sudo apt-get upgrade
@SagaieNet
SagaieNet / graphite.md
Created February 14, 2013 12:29 — forked from caged/graphite.md

This is a general overview (from memory) of the steps I used to install graphite (http://graphite.wikidot.com) on OS X Lion. I think the steps are in order but YMMV. Please fork and fix if you find an error.

Install Python 2.7.2

brew install python

Check your env

$ python --version
####################################
# BASIC REQUIREMENTS
# http://graphite.wikidot.com/installation
# http://geek.michaelgrace.org/2011/09/how-to-install-graphite-on-ubuntu/
# Last tested & updated 10/13/2011
####################################
cd
sudo apt-get update
sudo apt-get upgrade
# install Ubuntu 12
# update && upgrade
$ sudo apt-get update && sudo apt-get upgrade -y
# install dev tools
$ sudo apt-get install build-essential
# install wget if nor present
$ sudo apt-get install wget
@SagaieNet
SagaieNet / gist:5244582
Last active May 8, 2017 16:07
phpredis on Ubuntu 12
### INSTALL phpredis on Ubuntu 12 with nginx / php5-fpm
# Install php5-dev and dev tools git and php5-cli
$ sudo apt-get install build-essential git php5-dev php5-cli
# clone phpredis (https://github.com/nicolasff/phpredis)
$ git clone git://github.com/nicolasff/phpredis.git
# phpize & make
$ cd phpredis
@SagaieNet
SagaieNet / gist:5244738
Last active December 15, 2015 10:18
Add redis Session Handler for php
# Add Redis session handler for php
#
# Replace the Following in php.ini
session.save_handler = redis
session.save_path = "tcp://localhost:6379/"
#! /bin/sh
### BEGIN INIT INFO
# Provides: logstash
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start daemon at boot time
# Description: Enable service provided by daemon.
#!/bin/bash
# WARNING: Don't use this in production since all passwords are kept at their default.
# mongodb
apt-key adv --keyserver keyserver.ubuntu.com --recv 7F0CEB10
echo -e "deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen\n" > /etc/apt/sources.list.d/mongodb-10gen.list
apt-get update
apt-get install -y mongodb-10gen
@SagaieNet
SagaieNet / es.sh
Last active December 15, 2015 10:19
Installing elasticsearch on Ubuntu 12
cd ~
sudo apt-get update
sudo apt-get install openjdk-7-jre-headless -y
wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-0.20.6.tar.gz -O elasticsearch.tar.gz
tar -zxf elasticsearch.tar.gz
rm elasticsearch.tar.gz
mv elasticsearch-* elasticsearch
sudo mv elasticsearch /usr/local/share