본문 바로가기

프로그래밍

Redis 패스워드 설정

/etc/redis.conf 파일에서 엽니다.

requirepass 부분을 찾아서 # 주석을 제거하고 뒤에 패스워드를 적으면 됩니다.

redis 서버를 재 시작해야 적용됩니다.

이후 auth 를 사용해서 패스워드를 입력해야만 커맨드가 실행됩니다.

참고
https://redis.io/commands/auth
https://github.com/phpredis/phpredis#auth

 

 

 

 

 

'프로그래밍' 카테고리의 다른 글

SQL injection bjs  (1) 2020.03.29
nginx 에서 masscan, badbot block 하기  (0) 2019.11.07
PHP 숫자 자릿수 표시 넣기  (0) 2019.11.05
<BR> <BR /> <BR/> 차이  (0) 2019.11.05
PHP include 와 require 차이  (0) 2019.11.05