본문 바로가기
TOMCAT

[ TOMCAT ] Windows service 설치 ( install tomcat for Windows service )

by 정윤재 2018. 1. 12.

1. tomcat.apache.org 사이트에 접속 한다.

   eng) access http://tomcat.apache.org

 

2. 윈도우 용 Tomcat 을 다운로드 받는다. (64-bit Windows.zip)

   인스톨용으로 설치를 하면 서비스 등록 시 java 옵션 변경 및 서비스 삭제가 어렵다.

    eng) download Tomcat for windows (64-bit Windows.zip)

           If install Windows service installer, it is difficult for you to change JAVA OPTION and to remove Windows service.

 

3. zip 파일의 압축을 푼다.

   eng) extract zip file

 

4. 환경 변수로 %CATALINA_HOME% 을 tomcat 압축이 풀린 폴더로 잡아준다.

   eng) set environment variable %CATALINA_HOME% (extracted folder)

 

5.  cmd.exe 를 실행 시켜서 cmd 창을 연다.

   eng) execute cmd.exe

 

6. cd %CATALINA_HOME%\bin 으로 실행 폴더로 이동 한다.

   eng) move %CATALINA_HOME%\bin  folder

 

 

7. service.bat install [등록할 서비스 명] 을 입력 하여 Windows Service 를 등록 한다.

   eng) execute service.bat install [service name] to register Windows Service

 

 

8. 쉬운 실행 및 옵션 변경을 위해 gui 실행 파일의 이름을 변경 시킨다.

    - tomcat7w.exe 또는 tomcat8w.exe -> 서비스이름.exe

   eng) rename Windows tomcat gui (graphic user interface) execution file to set easily JAVA OPTION and control TOMCAT Service

    - tomcat7w.exe or tomcat8w.exe -> service_name.exe

 

9. tomcat gui 파일을 실행 시킨다. (Java 탭을 이용해 메모리 또는 JAVA 옵션 변경이 가능하다.)

  eng) execute service_name.exe  ( Use Java tab for changing JAVA Option )

 

 

 

10. 제어판 > 관리도구 > 서비스 에서 서비스 등록 여부를 확인 한다.

   eng) move Control Panel > Administration Tools > Service

          Check registered Windows Service (tomcat)

 


댓글