-
레디스(Redis) 및 AWS 엘라스틱캐시( Elasticache) 정리기타/서버 2021. 6. 23. 11:21
Redis (레디스)
1. 윈도우에 Redis 설치
Windows Redis 설치 (윈도우즈 레디스)
Windows에 Redis를 설치해보려고 해요. Redis에서 공식적으로 지원하지 않아요. 하지만, 다행히도 Microsoft에서 Redis를 Windows에 설치하여 사용할 수 있도록 지원해주고 있어요. 우선, 아래 github url에서 R
gofnrk.tistory.com
2. Redis 설명 및 nodejs 적용 예제
https://livecodestream.dev/post/beginners-guide-to-redis-and-caching-with-nodejs/
Beginner’s Guide to Redis and Caching with NodeJS
Learn how to develop performant applications by enabling caching using NodeJS and Redis.
livecodestream.dev
3. Redis 명령어
https://freeblogger.tistory.com/10
redis-cli 명령어 정리
redis-cli 명령어 정리 redis-cli 접속 호스트명과 포트번호를 생략하면 localhost의 6379로 접속됩니다. -n db번호 -a 비밀번호 -s 소켓 -u 서버 url 등 접속 시 다양한 옵션 설정이 사용 가능합니다. # localhos.
freeblogger.tistory.com
AWS 엘라스틱캐시(Elasticache)
1. ioredis 사용
"Couldn't Get Slot Allocation" Error On AWS ElastiCach (Redis) using Node.js
I was able to connect to Amazon ElastiCache (Redis) using Node.js libraries, which are redis and redis-clustr without any error. But get couldn't get slot allocation error whenever I tried to set k...
stackoverflow.com
2. ec2 와 elasticache의 같은 vpc에 있어야 한다.
3. ec2의 보안그룹에서 elasticache 6379 포트 열기
elasticache 보안그룹을 ec2 보안그룹과 동일
4. 원격 접속
redis-cli -h *** -p 6379
ubuntu에 redis-cli 설치하려면?
redis-cli는 redis를 우분투 쉘에서 직접 컨트롤 할 수 있는 Command Line Interface로 많이 사용됩니다. 만약 redis는 이미 설치되었으나 redis-cli가 없는 경우 이를 사용하려면 어떻게 할까요?제 경우 python fl
webisfree.com
'기타 > 서버' 카테고리의 다른 글
MySQL 오류 (Incorrect date value) (1) 2022.03.05 AWS https 적용 (로드밸런서, CloudFront) (0) 2021.11.13 AWS EC2 Auto Scaling 그룹에 소스 코드 배포 자동화 (0) 2021.06.21 Amazon Linux2 에 nodejs, nginx 설치 (0) 2021.06.20 AWS EC2에 nodejs 배포 방법 : nginx, pm2 (0) 2021.03.28