Skip to content

Instantly share code, notes, and snippets.

@ericbolo
Last active September 26, 2016 11:09
Show Gist options
  • Save ericbolo/926c3f42694fd090c842469dd0a07793 to your computer and use it in GitHub Desktop.
Save ericbolo/926c3f42694fd090c842469dd0a07793 to your computer and use it in GitHub Desktop.
Installing, configuring and using Redis on Ubuntu 16.04

Installation

sudo apt-get update
sudo apt-get install build-essential
sudo apt-get install -y tcl8.5
wget http://download.redis.io/releases/redis-stable.tar.gz
tar xzf redis-stable.tar.gz
tar xzf redis-stable.tar.gz
make
make test
sudo make install

Once the program has been installed, use Redis' script that sets up Redis to run as backgroud daemon.

cd utils
sudo ./install_server.sh

Note: press enter to approve default options. The server will be running on port 6379.

Set Redis to automatically start at boot

sudo update-rc.d redis_6379 defaults

Use Redis

sudo service redis_6379 start
sudo service redis_6379 stop

Redis shell

redis-cli

More on using Redis

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment