Created
April 25, 2016 20:24
-
-
Save hugsbrugs/231e347b1122e6d9694166ba458582e9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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