[ Redis Cli Commands ]
[ check redis ]
# redis-cli ping
[ check set & get as well as master slave replication ]
# On Master side #
# redis-cli
# 127.0.0.1:6379> set 'a' 1
# OK
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# On Slave side #
# redis-cli
# 127.0.0.1:6379> get 'a'
# "1"
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[ Redis AUTH command is used to authenticate a password-protected server with a given password. ]
# redis-cli
127.0.0.1:6379> AUTH master_password
127.0.0.1:6379> INFO replication
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[ check redis ]
# redis-cli ping
[ check set & get as well as master slave replication ]
# On Master side #
# redis-cli
# 127.0.0.1:6379> set 'a' 1
# OK
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# On Slave side #
# redis-cli
# 127.0.0.1:6379> get 'a'
# "1"
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[ Redis AUTH command is used to authenticate a password-protected server with a given password. ]
# redis-cli
127.0.0.1:6379> AUTH master_password
127.0.0.1:6379> INFO replication
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
No comments:
Post a Comment