Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | |||||
3 | 4 | 5 | 6 | 7 | 8 | 9 |
10 | 11 | 12 | 13 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 |
24 | 25 | 26 | 27 | 28 | 29 | 30 |
31 |
Tags
- redis cli
- 잔디이전
- 한 번에 끝내는 AWS 인프라 구축과 DevOps 운영 초격차 패키지 Online
- AWS S3 계정이동
- redis-cli
- 캐시백
- 환급챌린지
- vscode
- aws s3
- elastic cache
- Avast Security
- ERR unknown command 'JSON.GET'
- Redis
- 패스트캠퍼스
- Ngrinder Docker
- aws
- nodemailer
- putty Inactive
- Avast 구독취소
- AWS S3 버킷 삭제
- RedisJSON
- Window redis-cli
- ERR unknown command 'JSON.SET'
- 캐시백챌린지
- gitlab 잔디옮기기
- AWS S3 migration
- 직장인자기계발
- 패캠챌린지
- 패스트캠퍼스후기
- 직장인인강
Archives
- Today
- Total
Developing
Redis 적용시 connection failed 해결방법 (node repo) 본문
redis를 연습해보려고 node레포에 반영해보려고 하였다.
npm install redis --save
npm install정도만 해도 node에서 redis 쓸 수 있나..? 하고 기대하였지만 다음과 같은 메시지들을 마주하게 되었다.
해결방법: redis 공식문서 ( https://redis.io/docs/getting-started/ ) 에서 redis를 전역으로 install을 따로 먼저 해주어야 node 프로젝트에서도 사용할 수 있다.
꽤 자세하게 설명되어있는 블로그도 하나 찾아두었다!
[REDIS] 📚 Window10 환경에 Redis 설치 & 설정
Redis 윈도우 설치 Redis 다운로드 페이지로 이동하여 설치 프로그램을 다운로드하고 설치를 진행한다. Releases · microsoftarchive/redis Redis is an in-memory database that persists on disk. The data mo..
inpa.tistory.com
이후에 노드에서 redis가 적용되었는지 확인해보면 될 것이다.
const redis = require("redis");
async function run() {
const client = redis.createClient();
await client.connect();
console.log(client.isOpen); // this is true
await client.disconnect();
}
run();
'Trouble Shooting' 카테고리의 다른 글
nanoid [ERR_REQUIRE_ESM] 해결방법 : (package version에 따른 commonJS 미지원 이슈) (0) | 2022.10.26 |
---|---|
node 'request.cookies' undefined 현상 해결방법 (0) | 2022.08.29 |
nodemailer wrong version number 해결방법 (0) | 2022.08.13 |
nodemailer Error:Missing Credentials for "PLAIN" 해결방법 (0) | 2022.08.12 |
VSCode PlantUml Preview가 안되는 현상 해결방법 (0) | 2022.08.11 |