Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Install Redis
sudo apt-get update
sudo apt-get -y install build-essential
sudo apt-get -y install tcl8.5
# Download Redis
curl -O http://download.redis.io/releases/redis-stable.tar.gz
# Unzip Redis
tar xzf redis-stable.tar.gz
cd redis-stable
# Make, Test, and Install
make
make test
sudo make install
# Run Utility Install Script
cd utils
echo -n | sudo ./install_server.sh
# or if we need custom values during the install.
# echo -e \
# "${PORT}\n${CONFIG_FILE}\n${LOG_FILE}\n${DATA_DIR}\n${EXECUTABLE}\n" | \
# sudo utils/install_server.sh
# Insure this runs, albeit the installation above
# appears to be doing this step now.
sudo update-rc.d redis_6379 defaults
# Set an alias for redis-cli to redis
cd /usr/local/bin && sudo ln -s redis-cli redis
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment