install Redis on Mac OS X
brew install redis
Location of Redis configuration file
/usr/local/etc/redis.conf
파일에 bind 추가를 해 주어야 redis-cli 를 사용할 수 있다.
bind 0.0.0.0
이렇게 설정하면 모든 클라이언트에서 Redis에 접속할 수 있게 된다. 테스트 용도로만 쓰고 서비스에는 적절한 IP를 넣어야 된다.
Redis server 시작
redis-server

Redis 실행확인

Redis server 정지
redis-cli shutdown
redis-cli를 이용한 get, set 명령

redis-cli를 이용한 server 정지

저장된 key 검색
저장된 key를 검색해 봅시다.

Te votaré de vuelta! ¡Besos! Sígueme