Redis Windows용 설치 절차

아래는 대용량처리를 위한 Redis를 windows에 설치할때의 절차를 간단히 정리한 문서이다.

1. Redis 윈도우즈용 소스 다운로드
– https://github.com/MSOpenTech/redis (현재 2.8버전)

2. Visual Studio에서 컴파일
– \redis-2.8\msvs\RedisServer.sln 을 VS로 연다.
– 플랫폼을 x64로 맟추고 컴파일
– x64의 Release폴더에서 아래 실행파일을 특정폴더에 복사한다.(예:c:\Service\Redis)
redis-benchmark.exe
redis-check-aof.exe
redis-check-dump.exe
redis-cli.exe
redis-server.exe

3. 환경설정파일 복사
– \redis-2.8\msvs\setups\documentation의 redis.windows.conf을
위에서 복사한 폴더에 redis.conf파일로 복사
– redis.conf파일을 열어 몇가지 수정사항을 본인의 환경에 맞게 고친다.

bind 127.0.0.1

port 6379

logfile "C:\Temp\Redis.log"

4. 서비스 모드로 실행
– 서비스 등록

C:\Service\Redis>redis-server.exe --service-install redis.conf --loglevel verbose

– 서비스 시작

C:\Service\Redis>redis-server.exe --service-start
[1464] 15 Apr 15:14:50.298 # Redis service successfully started.

5. 클라이언트 접속 테스트

C:\Service\Redis>redis-cli.exe -h 127.0.0.1 -p 6379
127.0.0.1:6379> set id moramcnt
OK
127.0.0.1:6379> get id
"moramcnt"
127.0.0.1:6379>

6. 서비스 중지 및 제거
– 서지스 중지

C:\Service\Redis>redis-server.exe --service-stop
[5080] 15 Apr 15:18:34.921 # Redis service successfully stopped.

– 서비스 제거

C:\Service\Redis>redis-server.exe --service-uninstall
[4120] 15 Apr 15:18:53.580 # Redis service successfully uninstalled.

브라우져에서 exe.config 파일을 다운로드 받을수 있게 설정

WinForm으르 만든 프로그램을 만들고 자동업데이트받을수 있게 자동업데이트사이트를 만들경우 발생한 문제이다.

가령 윈폼의 환경설정파일(exe.config)도 자동업데이트를 통해 배포하고자 할때는 권한문제로 404 에러가 발생하게 된다.

이떄 404에러를 발생하지 않게 하려면 다음과 같이 하면 된다.

1. iis를 오픈

2. 해당 사이트에서 "요청 필터링" 메뉴 클릭

3. 아래와 같이 config 파일을 true로 설정하여  요청필터링에서 허용한다.

 

ii7-allow-config-file-download