127.0.0.1:6379> CONFIG SET requirepass password
OK
CONFIG SET 커맨드로 재설정할 수 있다.rename-command
enable-protected-configs no
enable-debug-command no
enable-module command
no: 모든 연결에 대해 명령어 수행을 차단yes: 모든 연결에 대해 명령어 수행을 허용local: 로컬 연결에 대해서만 명령어 수행이 허용된다.ACL SETUSER - 유저를 생성하는 커맨드ACL DELUSER - 유저를 삭제하는 커맨드ACL GETUSER - 특정 유저를 확인하는 커맨드ACL LIST - 레디스에 생성된 모든 유저를 확인acl setuser <username> on 구문을 추가해야 한다.패스워드 키워드로 패스워드를 지정할 수 있다.
CONFIG GET requirepass 커맨드로 누구나 패스워드를 확인할 수 있게 된다.> ACL SETUSER user1 +@all -@admin +bgsave +slowlog|get
ACL CAT 커맨드를 이용해 미리 정의돼 있는 카테고리 커맨드 list를 확인할 수 있다.ACL SETUSER loguser ~log:* %R~mail:* %R~sms:*
ACL SETUSER loguser resetkeys ~log:* (+GET ~mail:*)
aclfile /etc/redis/users/acl
CONFIG REWRITE
ACL LOAD나 ACL SAVE 커맨드로 유저 데이터를 레디스로 로드하는 것이 가능make BUILD_TLS=yestls-port <포트 번호>
tls-cert-file /path/to/redis.crt
tls-key-file /path/to/redis.key
tls-ca-cert-file /path/to/ca.crt
tls-port <포트 번호>
tls-replication yes
tls-cert-file /path/to/redis.crt
tls-key-file /path/to/redis.key
tls-ca-cert-file /path/to/ca.crt
tls-port <포트 번호>
tls-replication yes
tls-cluster yes
tls-cert-file /path/to/redis.crt
tls-key-file /path/to/redis.key
tls-ca-cert-file /path/to/ca.crt