Deki Host 를 Service 로 등록하기
MYDN2009. 3. 18. 12:08
Site settings could not be loaded
We were unable to locate the API to request site settings. Please see below for debugging information.
HTTP Response Status Code: 0
Trying API autodiscovery:
The API is currently located at http://localhost:8081/deki.
Trying http://192.168.10.102:10080/@api/deki ... failed (HTTP Status: 503)
Deki 를 사용하다가 위와 같은 에러가 발생하면, Deki Host 가 정상 작동하지 않는 경우입니다.
이 때는,
%dekiwiki%\config\ 폴더에 있는
mindtouch.host.bat 파일을 실행하여, Deki Host 를 실행하여야 하는데,
콘솔에서 동작하는 프로그램이기 때문에, 컴퓨터를 재부팅하고 로그인하기 전에는 동작하지 않습니다.
아파치 서버처럼 서비스로 등록하는 방법은 다음과 같습니다.
1. 여기를 클릭하여 파일을 다운받은 후 임의의 디렉토리에 압축을 풀어줍니다
2. cmd.exe 창을 띄워 압축을 푼 디렉토리에서 다음과 같이 실행합니다.
instsrv dekihost %절대경로%\srvany.exe
예 ) c:\reskit>instsrv dekihost c:\reskit\srvany.exe
예 ) c:\reskit>instsrv dekihost c:\reskit\srvany.exe
3. Regedit.exe 를 실행하여 HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\dekihost 으로 이동합니다.
4. dekihost 에 Parameters라는 키를 만들고 다음과 같은 문자열 키를 생성합니다.
AppDirectory // dekiwiki\bin 패스 설정
Application // dekiwiki\bin 폴더의 mindtouch.host.exe 를 설정
AppParameters // mindtoych.host.bat 파일을 메모장으로 열어 실행 아규먼트 값을 설정
Application // dekiwiki\bin 폴더의 mindtouch.host.exe 를 설정
AppParameters // mindtoych.host.bat 파일을 메모장으로 열어 실행 아규먼트 값을 설정
예 )
5. services.msc 를 실행하여 dekihost 서비스를 시작시킵니다
끝.
원문 : http://wiki.developer.mindtouch.com/MindTouch_Deki/Installation_and_Upgrade/1.8_Hayes_Official_Install_and_Upgrade_Guide/Windows/Dekihost_Windows_Service