Last active
November 17, 2015 14:52
-
-
Save alirezas/ba9b8f919fe1474a246b 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
wget http://download.redis.io/redis-stable.tar.gz | |
tar xzvf redis-stable.tar.gz | |
cd redis-stable/deps | |
make hiredis jemalloc linenoise lua | |
cd .. | |
make install | |
sysctl vm.overcommit_memory=1 | |
sysctl -w fs.file-max=100000 | |
cd utils | |
sudo ./install_server.sh | |
service redis_6379 status | |
service redis_6379 start | |
nano /etc/redis/6379.conf | |
# find # requirepass foobared | |
#replace it with your password | |
requirepass somePassword | |
service redis_6379 restart | |
redis-cli | |
eval "return {KEYS[1],KEYS[2],ARGV[1],ARGV[2]}" 2 key1 key2 first second |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment