Skip to content

Instantly share code, notes, and snippets.

@Adron
Created April 16, 2016 18:09
Show Gist options
  • Save Adron/0e6fae182e6c25f1a596fc6442810c1e to your computer and use it in GitHub Desktop.
Save Adron/0e6fae182e6c25f1a596fc6442810c1e to your computer and use it in GitHub Desktop.
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