728x90
root@redis_1:/data# redis-cli -a password
Warning: Using a password with '-a' or '-u' option on the command line interface may not be safe.
127.0.0.1:6379> set key value
(error) MOVED 12539 172.28.0.5:6379

접속에 -c 옵션을 추가하자
root@redis_1:/data# redis-cli -a password -c
Warning: Using a password with '-a' or '-u' option on the command line interface may not be safe.
127.0.0.1:6379> set key value
-> Redirected to slot [12539] located at 172.28.0.5:6379
OK

728x90
'Database > Redis' 카테고리의 다른 글
[Redis] 레디스의 장점 (0) | 2023.05.21 |
---|---|
[Redis] cluster info 레디스 클러스터 전후 비교 (0) | 2022.11.25 |
[redis] 레디스 명령어 연습하기 3 (0) | 2022.01.16 |
[redis] 레디스 명령어 연습하기 2 (0) | 2022.01.09 |
[redis] 레디스 명령어 연습하기 1 (0) | 2022.01.06 |
728x90
root@redis_1:/data# redis-cli -a password
Warning: Using a password with '-a' or '-u' option on the command line interface may not be safe.
127.0.0.1:6379> set key value
(error) MOVED 12539 172.28.0.5:6379

접속에 -c 옵션을 추가하자
root@redis_1:/data# redis-cli -a password -c
Warning: Using a password with '-a' or '-u' option on the command line interface may not be safe.
127.0.0.1:6379> set key value
-> Redirected to slot [12539] located at 172.28.0.5:6379
OK

728x90
'Database > Redis' 카테고리의 다른 글
[Redis] 레디스의 장점 (0) | 2023.05.21 |
---|---|
[Redis] cluster info 레디스 클러스터 전후 비교 (0) | 2022.11.25 |
[redis] 레디스 명령어 연습하기 3 (0) | 2022.01.16 |
[redis] 레디스 명령어 연습하기 2 (0) | 2022.01.09 |
[redis] 레디스 명령어 연습하기 1 (0) | 2022.01.06 |