글

라벨이 redis인 게시물 표시

Redis 도커설치(standalone)

  docker-compose.yml version : '3.7' services : redis : image : redis : 7.0.4 command : redis - server - - port 6379 container_name : redis_standalone hostname : redis_standalone labels : - "name=redis" - "mode=standalone" ports : - 6379 : 6379 redis-cli >> docker exec -it redis_standalone redis-cli 127.0 .0.1:637 9 > PING PONG 127.0 .0.1:637 9 > keys * ( empty array ) 127.0 .0.1:637 9 > SET abc 123 OK 127.0 .0.1:637 9 > GET abc "123" 127.0 .0.1:637 9 > 참고문헌 Redis 컨테이너 환경 실행 with Docker-compose docker로 redis 설치 및 redis 기본적인 명령어를 알아보자