Redis主从集群预备工作启动上台Redis主从检测是否配置成功-----Redis

[root@localhost myredis]# redis-server /myredis/redis6379.conf 
[root@localhost myredis]# redis-cli -a abc123
Warning: Using a password with '-a' or '-u' option on the command line interface may not be safe.
127.0.0.1:6379> keys *
 1) "count"
 2) "list"
 3) "k100"
 4) "key"
 5) "k10000"
 6) "k300"
 7) "k200"
 8) "user:001"
 9) "k2"
10) "balance"
11) "k1"
12) "email"
13) "k3"
127.0.0.1:6379> ping
PONG

[root@localhost myredis]# redis-server /myredis/redis6379.conf 
[root@localhost myredis]# redis-cli -a abc123
Warning: Using a password with '-a' or '-u' option on the command line interface may not be safe.
127.0.0.1:6379> keys *
 1) "count"
 2) "list"
 3) "k100"
 4) "key"
 5) "k10000"
 6) "k300"
 7) "k200"
 8) "user:001"
 9) "k2"
10) "balance"
11) "k1"
12) "email"
13) "k3"
127.0.0.1:6379> ping
PONG
 

[root@localhost myredis]# redis-server /myredis/redis6380.conf 
[root@localhost myredis]# redis-cli -a abc123 -p 6380
Warning: Using a password with '-a' or '-u' option on the command line interface may not be safe.
AUTH failed: ERR AUTH  called without any password configured for the default user. Are you sure your configuration is correct?
127.0.0.1:6380> ping
PONG
127.0.0.1:6380> keys *
(empty array)
127.0.0.1:6380> keys *
(empty array)

 [root@localhost myredis]# redis-server /myredis/redis6380.conf 
[root@localhost myredis]# redis-cli -a abc123 -p 6380
Warning: Using a password with '-a' or '-u' option on the command line interface may not be safe.
AUTH failed: ERR AUTH called without any password configured for the default user. Are you sure your configuration is correct?
127.0.0.1:6380> ping
PONG
127.0.0.1:6380> keys *
(empty array)
127.0.0.1:6380> keys *
(empty array)

[root@localhost myredis]# redis-server /myredis/redis6381.conf 
[root@localhost myredis]# redis-cli -a abc123 -p 6381
Warning: Using a password with '-a' or '-u' option on the command line interface may not be safe.
AUTH failed: ERR AUTH  called without any password configured for the default user. Are you sure your configuration is correct?
127.0.0.1:6381> keys *
(empty array)
127.0.0.1:6381> ping
PONG

 [root@localhost myredis]# redis-server /myredis/redis6381.conf 
[root@localhost myredis]# redis-cli -a abc123 -p 6381
Warning: Using a password with '-a' or '-u' option on the command line interface may not be safe.
AUTH failed: ERR AUTH called without any password configured for the default user. Are you sure your configuration is correct?
127.0.0.1:6381> keys *
(empty array)
127.0.0.1:6381> ping
PONG

你可能感兴趣的:(Redis,数据库,redis,数据库,sql,nosql,database,后端,中间件)