2009/09/16

Redmine 서비스로 등록하기

지난 포스팅에서 Redmine 을 XP 설치하는 글을 올렸었다.

2009/09/16 - [Dev Story] - Redmine - Windows XP 에서 수동 설치하기



지난 글에 이어 설치 된 Redmine 을 Windows의 서버스로 등록을 하여 실행을 시켜 보았다.



우선 서버스로 등록을 하기 위해서는 mongrel 가 필요하다. 설치 방법은 아래와 같다.



C:\Dev
uby>gem install mongrel mongrel_service --include-dependencies
INFO: `gem install -y` is now default and will be removed
INFO: use --ignore-dependencies to install only the gems you list
Successfully installed gem_plugin-0.2.3
Successfully installed cgi_multipart_eof_fix-2.5.0
Successfully installed mongrel-1.1.5-x86-mswin32-60
Successfully installed win32-service-0.5.2-x86-mswin32
Successfully installed mongrel_service-0.3.4-x86-mswin32
5 gems installed
Installing ri documentation for gem_plugin-0.2.3...
Installing ri documentation for cgi_multipart_eof_fix-2.5.0...
Installing ri documentation for mongrel-1.1.5-x86-mswin32-60...
Installing ri documentation for win32-service-0.5.2-x86-mswin32...
Installing ri documentation for mongrel_service-0.3.4-x86-mswin32...
Installing RDoc documentation for gem_plugin-0.2.3...
Installing RDoc documentation for cgi_multipart_eof_fix-2.5.0...
Installing RDoc documentation for mongrel-1.1.5-x86-mswin32-60...
Installing RDoc documentation for win32-service-0.5.2-x86-mswin32...
Installing RDoc documentation for mongrel_service-0.3.4-x86-mswin32...




아래는 Redmine 을 서비스로 등록하는 명령이다.



C:\Dev
uby>mongrel_rails service::install -N RedmineSvr -p 3001 -e production -c C:\Dev\Rails\Redmine
** Copying native mongrel_service executable...
Mongrel service 'RedmineSvr1' installed as 'RedmineSvr1'.




등록을 마쳤으면 서비스를 실행 시킨다.



C:\Dev
uby>net start RedmineSvr




이제 브라우저에서 http://localhost:3001/ 로 접속을 하면 Redmine 을 볼 수 있다. PC가 부팅될 때 마다 자동으로 실행 시키고자 할 경우 "내 컴퓨터" 에서 오른쪽 버튼 클릭시 나오는 메뉴 중 "관리" 메뉴에서 서비스 항목 중 RedmineSvr 를 찾아 자동실행으로 설정 해 놓으면 된다.<

Original Post : http://neodreamer-dev.tistory.com/325

No comments :

Post a Comment