서버구축이야기!!

닫기 검색결과 전체 보기

    Redis - 명령어 변경 알아보기

    Linux Server/Redis 2023. 3. 8. 09:00

    Redis - 명령어 변경 알아보기

     

     

     

    이번 포스팅에서는 Redis 명령어 변경에 대해서 알아보도록 하겠습니다

     

     

     

     

       Redis 관련글

     

     

     

     

    https://server-talk.tistory.com/471 - Redis - In-Memory - 알아보기​

     

     

    https://server-talk.tistory.com/472 - Redis - 서버 설치 및 기본설정 알아보기

     

     

    https://server-talk.tistory.com/473 - Redis - Redis-cli 기본 사용법

     

     

    https://server-talk.tistory.com/474 - Redis - Redis Desktop Manager Tool

     

     

    https://server-talk.tistory.com/475 - phpredis 설치 알아보기

     

     

    https://server-talk.tistory.com/502 - Cluster 알아보기

     

     

    https://server-talk.tistory.com/503 - Redis - Cluster Master Node 구성하기

     

     

    https://server-talk.tistory.com/504 - Redis - Cluster Master Node 관련 설정 알아보기

     

     

    https://server-talk.tistory.com/505 - Redis - Master Node - Cluster 상태정보 확인

     

    https://server-talk.tistory.com/506 - Redis - Slave Note Cluster 구성하기

     

     

    https://server-talk.tistory.com/507 - Redis - Master Note와 Slave Cluster 연동 상태 알아보기

     

     

    https://server-talk.tistory.com/508 - Redis - Cluster - hash slot 알아보기

     

     

    https://server-talk.tistory.com/509 - Redis - Cluster Node Slot 분배하기

     

     

    https://server-talk.tistory.com/510 - Redis - Cluster Node slot 이전 및 데이터 이전 알아보기

     

     

    https://server-talk.tistory.com/511 - Redis - Cluster Node Slot 재분배하기 - REBALANCE

     

     

    https://server-talk.tistory.com/512 - Redis - Cluster Master Node 삭제하기

     

     

     

     

       Redis - 명령어의 문제점

     

     

     

     

     

    Redis 에서는 악의적인 의도를 가진분들이 FLUSHDB, FLUSHALL, KEYS 등등 명령어 서버의 실행하게 된다면 심각한 문제를 초래할수 있습니다.

     

     

     

     

     

    이러한 중요한 명령어는 사용을 금지하거나 다른명령어로 변경해야 되며, 외부의 다른 사용자가 사용할 수 없도록 변경하여야 됩니다.

     

     

     

     

       Redis - 명령어 변경하기

     

     

     

     

    File : /etc/redis.conf

     

    사용법 : rename-command [command] [command to change]

     

    vi /etc/redis.conf
    
    rename-command FLUSHDB convention
    rename-command FLUSHALL convention
    rename-command CONFIG convention
    rename-command KEYS convention

     

     

     

     

    127.0.0.1:6379> FLUSHDB
    (error) ERR unknown command `FLUSHDB`, with args beginning with: 
    127.0.0.1:6379> FLUSHALL
    (error) ERR unknown command `FLUSHALL`, with args beginning with: 
    127.0.0.1:6379> CONFIG
    (error) ERR unknown command `CONFIG`, with args beginning with: 
    127.0.0.1:6379> KEYS
    (error) ERR unknown command `KEYS`, with args beginning with:

     

    명령어가 실행되지 않는것을 확인하실 수 있습니다.

    저작자표시
    'Linux Server/Redis' 관련 글 more
    • thumbnail
      Redis - Cluster Master Node 장애복구 2023.03.02
    • thumbnail
      Redis - Cluster Master Node 삭제하기 2023.02.22
    • thumbnail
      Redis - Cluster Node Slot 재분배하기 - REBALANCE 2023.02.15
    • thumbnail
      Redis - Cluster Node Slot 분배하기 2023.02.08
    Posted by 서버이야기
블로그 이미지

서버구축의 대한 이야기 입니다.

by 서버이야기

공지사항

    최근...

  • 포스트
  • 댓글
  • 더 보기

태그

글 보관함

«   2025/05   »
일 월 화 수 목 금 토
1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31

링크

카테고리

서버이야기 (491)
Windows Server (77)
IIS 8 (23)
IIIS 7 (9)
Database (14)
보안 (10)
네임서버 (6)
로그 (2)
에러 (1)
기타 응용프로그램 (9)
Linux Server (266)
CentOS (17)
Ubuntu (20)
Linux 명령어 (65)
Apache (2)
PHP (13)
MYSQL (30)
LAPM (4)
SNMP (1)
RAID (4)
보안 (3)
에러 (2)
모니터링 (15)
DNS(네임서버) (1)
MariaDB (5)
Nginx (14)
방화벽 (13)
Zabbix (10)
Redis (40)
부하분산 (4)
서비스 (1)
로드밸런싱 (2)
Alteon (1)
웹언어 (41)
HTML (10)
PHP (22)
CSS (9)
유용한 정보 (39)
보안 (2)
서버 접속장애 (1)
개발툴-유틸리티 (30)
용어 (25)
네트워크 (9)
디스크 (5)
보안 (1)
데이터베이스 (2)
Programing (25)
Python (25)
NAS (4)
Synology (4)

카운터

Total
Today
Yesterday
방명록 : 관리자 : 글쓰기
서버이야기's Blog is powered by daumkakao
Skin info material T Mark5.2 by 뭐하라
favicon

서버구축이야기!!

서버구축의 대한 이야기 입니다.

  • 태그
  • 링크 추가
  • 방명록

관리자 메뉴

  • 관리자 모드
  • 글쓰기
  • 서버이야기 (491)
    • Windows Server (77)
      • IIS 8 (23)
      • IIIS 7 (9)
      • Database (14)
      • 보안 (10)
      • 네임서버 (6)
      • 로그 (2)
      • 에러 (1)
      • 기타 응용프로그램 (9)
    • Linux Server (266)
      • CentOS (17)
      • Ubuntu (20)
      • Linux 명령어 (65)
      • Apache (2)
      • PHP (13)
      • MYSQL (30)
      • LAPM (4)
      • SNMP (1)
      • RAID (4)
      • 보안 (3)
      • 에러 (2)
      • 모니터링 (15)
      • DNS(네임서버) (1)
      • MariaDB (5)
      • Nginx (14)
      • 방화벽 (13)
      • Zabbix (10)
      • Redis (40)
    • 부하분산 (4)
      • 서비스 (1)
      • 로드밸런싱 (2)
      • Alteon (1)
    • 웹언어 (41)
      • HTML (10)
      • PHP (22)
      • CSS (9)
    • 유용한 정보 (39)
      • 보안 (2)
      • 서버 접속장애 (1)
      • 개발툴-유틸리티 (30)
    • 용어 (25)
      • 네트워크 (9)
      • 디스크 (5)
      • 보안 (1)
      • 데이터베이스 (2)
    • Programing (25)
      • Python (25)
    • NAS (4)
      • Synology (4)

카테고리

PC화면 보기 티스토리 Daum

티스토리툴바