Open Source/Redis
Redis-cli 사용법
정몽실이
2020. 3. 19. 11:24
redis-cli 실행하려고 했더니 접속 거절
$redis-cli
Could not connect to Redis at 127.0.0.1:6379: Connection refused
not connected>
접속 안됨
redis-server 올라와있는지 확인
ps -ef | grep redis
-- redis Serer가 올라와있는지 확인
reids-server <host>:6379
-- 떠 있다면 Server는 실행되고 있음
들어와서 INFO 를 보려고하니까
$ redis-cli -h 호스트 -a 비밀번호
<host>:6379> INFO
NOAUTH Authentication required.
-- 이번엔 권한이 튕긴다!
redis-cli에 password를 설정해주면 된다.
<host>:6379 > AUTH password(본인 레디스 비밀번호)
OK
-- 얏호 된다!