Wednesday, January 1, 2014


Training here
To install:

yum install redis
vi /etc/redis.conf
comment out the "bind" line
/usr/sbin/redis-server /etc/redis.conf
ps -ef | grep redis
root      4092     1  0 21:27 ?        00:00:00 /usr/sbin/redis-server /etc/redis.conf

/usr/bin/redis-cli ping

netstat -an | grep 6379
tcp        0      0      *                   LISTEN

if in /etc/redis.conf you specify a "bind IP" (IP= then you have to use the -h option:
/usr/bin/redis-cli -h shutdown

you can issue several commands:
set key value
get key
incr key

No comments: