Skip to content

Instantly share code, notes, and snippets.

@buonzz
Last active November 6, 2015 21:11
Show Gist options
  • Save buonzz/7713c1ba5cdbc50276f3 to your computer and use it in GitHub Desktop.
Save buonzz/7713c1ba5cdbc50276f3 to your computer and use it in GitHub Desktop.
install redis
sudo apt-get update
sudo apt-get install build-essential -y
sudo apt-get install tcl8.5 -y
wget http://download.redis.io/releases/redis-3.0.5.tar.gz
tar xzf redis-3.0.5.tar.gz
cd redis-3.0.5
make
make test
sudo make install
cd utils
sudo ./install_server.sh
# open port of redis
sudo iptables -I INPUT -p tcp --dport 6379 -j ACCEPT
sudo iptables-save
# receive outside connections
sudo nano /etc/redis/redis.conf
bind=0.0.0.0
# restart redis
sudo service redis-server restart
@v6
Copy link

v6 commented Nov 6, 2015

// , Is 6379 the default port for Redis?

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