How To Install and Use Redis on AWS
ubuntu@ip-192-168-100-46:~$ sudo apt-get update
ubuntu@ip-192-168-100-46:~$ sudo apt-get install build-essential
ubuntu@ip-192-168-100-46:~$ sudo apt-get install tcl8.5
ubuntu@ip-192-168-100-46:~$ wget http://download.redis.io/releases/redis-2.8.9.tar.gz
ubuntu@ip-192-168-100-46:~$ tar xzf redis-2.8.9.tar.gz
ubuntu@ip-192-168-100-46:~$ cd redis-2.8.9
ubuntu@ip-192-168-100-46:~/redis-2.8.9$ make
ubuntu@ip-192-168-100-46:~/redis-2.8.9$ make test
\o/ All tests passed without errors!
Cleanup: may take some time... OK
make[1]: Leaving directory `/home/ubuntu/redis-2.8.9/src'
ubuntu@ip-192-168-100-46:~/redis-2.8.9$ sudo make install
cd src && make install
make[1]: Entering directory `/home/ubuntu/redis-2.8.9/src'
Hint: To run 'make test' is a good idea ;)
INSTALL install
INSTALL install
INSTALL install
INSTALL install
INSTALL install
make[1]: Leaving directory `/home/ubuntu/redis-2.8.9/src'
ubuntu@ip-192-168-100-46:~/redis-2.8.9$ cd utils
ubuntu@ip-192-168-100-46:~/redis-2.8.9/utils$ sudo ./install_server.sh
Welcome to the redis service installer
This script will help you easily set up a running redis server
Please select the redis port for this instance: [6379]
Selecting default: 6379
Please select the redis config file name [/etc/redis/6379.conf]
Selected default - /etc/redis/6379.conf
Please select the redis log file name [/var/log/redis_6379.log]
Selected default - /var/log/redis_6379.log
Please select the data directory for this instance [/var/lib/redis/6379]
Selected default - /var/lib/redis/6379
Please select the redis executable path [/usr/local/bin/redis-server]
Selected config:
Port : 6379
Config file : /etc/redis/6379.conf
Log file : /var/log/redis_6379.log
Data dir : /var/lib/redis/6379
Executable : /usr/local/bin/redis-server
Cli Executable : /usr/local/bin/redis-cli
Is this ok? Then press ENTER to go on or Ctrl-C to abort.
Copied /tmp/6379.conf => /etc/init.d/redis_6379
Installing service...
Adding system startup for /etc/init.d/redis_6379 ...
/etc/rc0.d/K20redis_6379 -> ../init.d/redis_6379
/etc/rc1.d/K20redis_6379 -> ../init.d/redis_6379
/etc/rc6.d/K20redis_6379 -> ../init.d/redis_6379
/etc/rc2.d/S20redis_6379 -> ../init.d/redis_6379
/etc/rc3.d/S20redis_6379 -> ../init.d/redis_6379
/etc/rc4.d/S20redis_6379 -> ../init.d/redis_6379
/etc/rc5.d/S20redis_6379 -> ../init.d/redis_6379
Success!
Starting Redis server...
Installation successful!
ubuntu@ip-192-168-100-46:~/redis-2.8.9/utils$ sudo service redis_6379 stop
Stopping ...
Redis stopped
ubuntu@ip-192-168-100-46:~/redis-2.8.9/utils$ sudo service redis_6379 start
Starting Redis server...
ubuntu@ip-192-168-100-46:~/redis-2.8.9/utils$ sudo update-rc.d redis_6379 defaults
ubuntu@ip-192-168-100-46:~$ redis-cli
127.0.0.1:6379> SET users:GeorgeWashington "job: President, born:1732, dislikes: cherry trees"
OK
127.0.0.1:6379> GET users:GeorgeWashington
"job: President, born:1732, dislikes: cherry trees"
127.0.0.1:6379>
Reference:-
http://redistogo.com/documentation/resque
Thanks for posting this kind of worthy information. this was really very helpful to me. keep continuing.
ReplyDeleteSpoken English Classes in Chennai
Best Spoken English Classes in Chennai
IELTS Coaching in Chennai
IELTS Coaching Centre in Chennai
English Speaking Classes in Mumbai
English Speaking Course in Mumbai
IELTS Classes in Mumbai
IELTS Coaching in Mumbai
IELTS Coaching in Anna Nagar
Spoken English Class in Anna Nagar