[트러블슈팅] Could not connect to Redis at 127.0.0.1:6379: Connection refused

2023. 9. 12. 13:41·개발중/Redis
728x90
반응형

redis local 에서 접속하려니 아래와 같은 오류가 발생했습니다.

root@DESKTOP-Q26RDFJ:~# redis-cli
Could not connect to Redis at 127.0.0.1:6379: Connection refused

 

redis-server 명령어로 redis 실행시켜준 후 

root@DESKTOP-Q26RDFJ:~# redis-server
617:C 12 Sep 2023 13:37:43.911 # WARNING Memory overcommit must be enabled! Without it, a background save or replication may fail under low memory condition. Being disabled, it can also cause failures without low memory condition, see https://github.com/jemalloc/jemalloc/issues/1328. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.
617:C 12 Sep 2023 13:37:43.911 * oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
617:C 12 Sep 2023 13:37:43.911 * Redis version=7.2.0, bits=64, commit=00000000, modified=0, pid=617, just started
617:C 12 Sep 2023 13:37:43.911 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf
617:M 12 Sep 2023 13:37:43.913 * Increased maximum number of open files to 10032 (it was originally set to 1024).
617:M 12 Sep 2023 13:37:43.913 * monotonic clock: POSIX clock_gettime
                _._
           _.-``__ ''-._
      _.-``    `.  `_.  ''-._           Redis 7.2.0 (00000000/0) 64 bit
  .-`` .-```.  ```\/    _.,_ ''-._
 (    '      ,       .-`  | `,    )     Running in standalone mode
 |`-._`-...-` __...-.``-._|'` _.-'|     Port: 6379
 |    `-._   `._    /     _.-'    |     PID: 617
  `-._    `-._  `-./  _.-'    _.-'
 |`-._`-._    `-.__.-'    _.-'_.-'|
 |    `-._`-._        _.-'_.-'    |           https://redis.io
  `-._    `-._`-.__.-'_.-'    _.-'
 |`-._`-._    `-.__.-'    _.-'_.-'|
 |    `-._`-._        _.-'_.-'    |
  `-._    `-._`-.__.-'_.-'    _.-'
      `-._    `-.__.-'    _.-'
          `-._        _.-'
              `-.__.-'

617:M 12 Sep 2023 13:37:43.913 * Server initialized
617:M 12 Sep 2023 13:37:43.914 * Ready to accept connections tcp

 

 

접속을 재시도하니 잘 됩니다.

 

root@DESKTOP-Q26RDFJ:~# redis-cli
127.0.0.1:6379>
728x90
반응형
저작자표시 (새창열림)

'개발중 > Redis' 카테고리의 다른 글

Redis Pub/Sub 에 대해서 알아보기.  (0) 2024.09.24
[트러블 슈팅] Headless Service 에 대한 오해 (1)  (0) 2023.09.18
고성능을 위한 Redis (High Availability, HA)와 Kubernetes 구축 마스터 가이드 (Spring Session storage 설정까지)  (1) 2023.09.18
[Redis 트러블슈팅] OOM command not allowed when used memory > 'maxmemory'.  (0) 2023.09.12
k8s Redis 구성방식에 대해서 고민하는 중입니다.  (0) 2023.09.08
'개발중/Redis' 카테고리의 다른 글
  • [트러블 슈팅] Headless Service 에 대한 오해 (1)
  • 고성능을 위한 Redis (High Availability, HA)와 Kubernetes 구축 마스터 가이드 (Spring Session storage 설정까지)
  • [Redis 트러블슈팅] OOM command not allowed when used memory > 'maxmemory'.
  • k8s Redis 구성방식에 대해서 고민하는 중입니다.
Binsoo
Binsoo
내 트러블 슈팅
  • Binsoo
    정수빈 기술블로그임.
    Binsoo
  • 전체
    오늘
    어제
    • 빈수 개발자 개발 일기 (949)
      • 개발중 (635)
        • Spring Boot (95)
        • Spring Security (2)
        • Spring Batch (6)
        • Spring Boot & Redis (13)
        • Java Persistence API (JPA) (28)
        • Web (42)
        • Rest Api (7)
        • Spring Concurrency Control (3)
        • Redis (8)
        • Kubernetes (k8s) (4)
        • MYSQL (35)
        • AirFlow (15)
        • Docker (2)
        • Git (22)
        • Linux (9)
        • JSON Web Tokens (JWT) (4)
        • Troubleshooting (88)
        • Swagger (0)
        • Vue.js (52)
        • Java (74)
        • html (12)
        • C (5)
        • jQuery (15)
        • JavaServer Pages (JSP) (17)
        • Arduino (1)
        • JavaScript (35)
        • Amazon Web Services (AWS) (11)
        • Algorithm (9)
        • 참고 기능 (18)
        • mongo (2)
      • PROJECT (27)
        • 스프링부트+JPA+몽고 API 개발 (3)
        • MINI (2)
        • 게시판 (3)
        • vue 프로젝트 (1)
        • JPA 사이드 프로젝트 기록 (17)
      • TEAM STUDY (156)
        • 가상 면접 사례로 배우는 대규모 시스템 설계 기초 (8)
        • 한 권으로 읽는 컴퓨터 구조와 프로그래밍 (12)
        • NAVER DEVELOPER (4)
        • LINUX (23)
        • PYTHON (19)
        • SERVER (8)
        • 알고리즘 코딩 테스트 스터디 (31)
        • 쿠버네티스 (40)
        • 대세는 쿠버네티스 [초급~중급] (11)
      • BOOK (0)
      • 자격증 (61)
        • 리눅스 1급 - 필기 기록 (19)
        • 네트워크 관리사 (2)
        • 네트워크 관리사 2급 - 실기 기록 (21)
        • 네트워크 관리사 2급 - 필기 기록 (16)
        • 정보처리 (2)
      • 직장인 대학원 (28)
        • 기록 (3)
        • 캐글 스터디 (3)
        • R (12)
        • MLOps (10)
      • 논문 (5)
  • 블로그 메뉴

    • 홈
    • 태그
  • 링크

  • 공지사항

  • 인기 글

  • 태그

    네트워크 관리사 2급 실기
    파이썬 알고리즘
    파이썬
    BackendDevelopment
    Spring
    docker
    알고리즘
    리눅스 1급 요약
    리눅스 마스터 요약
    git
    redis
    리눅스 마스터 1급
    jpa
    springboot
    네트워크 관리사 요약
    리눅스 마스터 1급 정리
    Git 저장소
    네트워크 관리사
    VUE
    네트워크 관리사 자격증
    리눅스 마스터 1급 요약
    네트워크 관리사 실기
    java
    쿠버네티스
    쿠버네티스 스터디
    네트워크 관리사 2급
    스프링
    네트워크 관리사 학점
    리눅스 마스터
    REST API
  • 최근 댓글

  • 최근 글

  • hELLO· Designed By정상우.v4.10.4
Binsoo
[트러블슈팅] Could not connect to Redis at 127.0.0.1:6379: Connection refused
상단으로

티스토리툴바