'windows'에 해당되는 글 1건

  1. Redis - Windows 설치하기 2

Redis - Windows 설치하기


메모리 DB 전용으로 사용될 Redis 테스트할 기회가 생겨 Redis Windows에 설치하게 되었다. 

Redis windows Version Download

https://github.com/dmajkic/redis/downloads

Redis 연구노트

http://kerocat.tistory.com/1


Redis Windows

https://github.com/kcherenkov/redis-windows-service

http://suretalent.blogspot.kr/2011/11/installing-redis-database-as-windows.html

https://github.com/kcherenkov/redis-windows-service/downloads

http://maxivak.com/getting-started-with-redis-and-asp-net-mvc-under-windows/

 

1. 디렉토리 생성

가."c:\redis\" 폴더에 압축 파일 해제

 

나. Data 폴더 생성

d:\db\Redis\

 

다. Config 폴더 생성

c:\Redis>Config


2. 설정 파일 이동

c:\Redis\Config로 redis.conf 파일을 복사하여 이동 


redis.conf: 수정 내용

#daemonize yes (windows 버전은 지원되지 않는다)

bind 127.0.0.1 (don't do this if you need to access redis from another computer)

loglevel notice

logfile d:\DB\redis\log\redis.log

dir D:\DB\redis\

 

3. 서비스 실행 파일 다운로드

https://github.com/kcherenkov/redis-windows-service/downloads

위의 경로를 통하여 실행 파일을 다운로드 받아 c:\redis\ 폴더에 저장

 

4. 윈도우 서비스 등록

sc create "REDIS001" binpath= "c:\Redis\RedisService_1.exe C:\Redis\Config\redis.conf" start= "auto" DisplayName= "Redis"

Where:

%name% -- name of service instance, ex. redis-instance;

%binpath% -- path to this project exe file, ex. C:\Program Files\redis\RedisService.exe;

%configpath% -- path to redis configuration file, ex. E:\Redis\redis.conf;

 

5. 윈도우 서비스 삭제       

sc delete "REDIS001"


6. 클라이언트 접속 확인

7. 로그파일 확인

[8888] 07 Jun 14:20:18 * Server started, Redis version 2.4.5

[8888] 07 Jun 14:20:18 # Open data file D:\DB\Redis\dump.rdb: No such file or directory

[8888] 07 Jun 14:20:18 * The server is now ready to accept connections on port 6379

[8888] 07 Jun 14:35:19 * 1 changes in 900 seconds. Saving...

[8888] 07 Jun 14:35:19 * Foregroud saving started by pid 8888

[8888] 07 Jun 14:35:19 * DB saved on disk

[8888] 07 Jun 14:35:19 * Background saving terminated with success



'Etc' 카테고리의 다른 글

Redis 사용  (0) 2012.06.07
Redis(Windows OS) 복제 구성하기  (2) 2012.06.07
MySQL을 대체한 RDBMS F1  (1) 2012.06.01
스터디 발표 자료 - 관리와 배포  (0) 2012.05.30
log rotate 처리하기 - window os  (0) 2012.05.29