Skip to content

Instantly share code, notes, and snippets.

@nicolasmendoza
Last active November 2, 2015 00:27
Show Gist options
  • Save nicolasmendoza/c165cc46631f81a0edb0 to your computer and use it in GitHub Desktop.
Save nicolasmendoza/c165cc46631f81a0edb0 to your computer and use it in GitHub Desktop.
Installing Redis on Ubuntu (Documentation)

Installing redis-server

Updating System

  1. $ sudo apt-get update
  2. $ sudo apt-get install build-essential
  3. $ sudo apt-get install tcl8.5

Installing Redis-Server

$ wget http://download.redis.io/releases/redis-stable.tar.gz

$ tar xzf redis-stable-tar.gz

$ redis-stable

$ make test

$ cd src && sudo make install

$ cd utils

$ sudo ./install_server-sh

Default Settings/Paths.

Selected config: Port : 6379 Config file : /etc/redis/6379.conf Log file : /var/log/redis_6379.log Data dir : /var/lib/redis/6379 Executable : /usr/local/bin/redis-server Cli Executable : /usr/local/bin/redis-cli

Set Redis to automatically start at boot

$ sudo update-rc.d redis 6379

Operations.

$ sudo service redis_6379 status|start|restart|stop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment