Skip to content

Instantly share code, notes, and snippets.

View nimboya's full-sized avatar

Ewere Diagboya nimboya

View GitHub Profile
@nimboya
nimboya / redis-server
Last active February 1, 2017 18:36 — forked from vinceyuan/redis-server-per-project
Init script to start/stop redis-server for CentOS or amazon ec2 linux ami. You can run multiple redis-server on one server with this script. Just copy and replace 'per-project' with your project name in this file for each project.
#!/bin/sh
# From - http://www.codingsteps.com/install-redis-2-6-on-amazon-ec2-linux-ami-or-centos/
#
# redis - this script starts and stops the redis-server daemon
# Originally from - https://raw.github.com/gist/257849/9f1e627e0b7dbe68882fa2b7bdb1b2b263522004/redis-server
# Modified by Vince Yuan https://gist.github.com/vinceyuan/9667435
#
# chkconfig: - 85 15
# description: Redis is a persistent key-value database
# processname: redis-server
@nimboya
nimboya / install-redis.sh
Last active February 1, 2017 18:41 — forked from dstroot/install-redis.sh
Install Redis on Amazon EC2 AMI
#!/bin/bash
redis_version=2.6.11
###############################################
# To use:
# wget https://raw.github.com/gist/2776679/aff799d090fae9307ddfabf683b36587/install-redis.sh
# chmod 777 install-redis.sh
# ./install-redis.sh
###############################################
echo "*****************************************"
echo " 1. Prerequisites: Install updates, set time zones, install GCC and make"