Skip to content

Instantly share code, notes, and snippets.

@hugsbrugs
Created April 25, 2016 20:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hugsbrugs/231e347b1122e6d9694166ba458582e9 to your computer and use it in GitHub Desktop.
Save hugsbrugs/231e347b1122e6d9694166ba458582e9 to your computer and use it in GitHub Desktop.
# Update you packages
sudo apt-get update
# Install a compiler
sudo apt-get install build-essential
# Install tcl
sudo apt-get install tcl8.5
# Download Redis
wget http://download.redis.io/releases/redis-stable.tar.gz
# Uncompress archive
tar xzf redis-stable.tar.gz
# Compile and install Redis
cd redis-stable
make
make test
sudo make install
# Run Ubuntu installer
cd utils
sudo ./install_server.sh
# Start Stop Redis
sudo service redis_6379 start
sudo service redis_6379 stop
# Secure installation
sudo nano /etc/redis/6379.conf
# uncomment line
bind 127.0.0.1
# Start at boot
sudo update-rc.d redis_6379 defaults
# Access Redis CLI
redis-cli
# Some operations example
SET users:GeorgeWashington "job: President, born:1732, dislikes: cherry trees"
GET users:GeorgeWashington
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment