Last active
November 6, 2015 21:11
-
-
Save buonzz/7713c1ba5cdbc50276f3 to your computer and use it in GitHub Desktop.
install redis
This file contains hidden or 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
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
// , Is
6379
the default port for Redis?