https://github.com/antirez/redis/issues/457
Refer to https://github.com/antirez/redis, I found that I need to start a redis-server instance first by typing redis-server before typing redis-cli in ANOTHER terminal.
Refer to https://github.com/antirez/redis, I found that I need to start a redis-server instance first by typing redis-server before typing redis-cli in ANOTHER terminal.
Playing with Redis
You can use redis-cli to play with Redis. Start a redis-server instance,
then in another terminal try the following:
then in another terminal try the following:
% cd src
% ./redis-cli
redis> ping
PONG
redis> set foo bar
OK
redis> get foo
"bar"
redis> incr mycounter
(integer) 1
redis> incr mycounter
(integer) 2
redis>
No comments:
Post a Comment