본문 바로가기
Big Data

[Redis] auth

by 유주원 2012. 10. 22.

auth command
- 암호를 설정함으로써 redis server를 보호할 수 있다. redis는 클라이언트로부터 날아온 명령어를 수행하기 전에 암호를 요청할 수 있다. 이는 configuration file의 requirepass 항목을 설정함으로써 동작이 가능하다.

redis> get mykey
(error) ERR operation not permitted
redis> auth 1111
OK
redis> get mykey
"12345678"