Post

[Redis] Local Redis 설치(mac)

스크린샷 2024-10-04 오후 2.06.22

Redis 설치하기


  1. HomeBrew 설치(패키지 관리 시스템인 homeBrew를 먼저 설치해줍니다.

    1
    
     /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
    
  2. Brew 설치 여부 확인

    1
    
     brew --version
    
  3. Redis 설치

    1
    
     brew install redis
    
  4. Redis 실행

    1
    
     brew services start redis
    
  5. Redis 실행 여부 확인

    1
    
     brew services info redis
    
  6. Redis 중지

    1
    
     brew services stop redis
    

참고

결과

스크린샷 2024-10-04 오후 2.48.25

Redis 접속하기


  • Redis 접속 명령어 redis-cli 를 입력 후 정상 접속됐는지 확인을 위해 ping 을 입력하면 PONG 을 응답해준다.
1
2
3
➜  DevK-Jung.github.io git:(gh-page) ✗ redis-cli
127.0.0.1:6379> ping
PONG
This post is licensed under CC BY 4.0 by the author.