Print
카테고리: [ Apache Tomcat ]
조회수: 4143

 

 

 
Apache Tomcat 7.0 (이하 Tomcat)에서는 Application의 디플로이(or 언디플로이)를 Tomcat의 재 기동 없이 웹 브라우져에서 실행 할 수 있는 Manager 기능이 있습니다. 
 
이것은 기본으로 Context Root는 /manager 사용하는데 주요 기능은 아래와 같습니다.
 
 
- Deploy a new web application from the uploaded contents of a WAR file.
 
- Deploy a new web application, on a specified context path, from the server file system.
 
- List the currently deployed web applications, as well as the sessions that are currently active for those web apps.
 
- Reload an existing web application, to reflect changes in the contents of /WEB-INF/classes or /WEB-INF/lib.
 
... 등 
 
 
 
이 Manger 를 웹 브라우져에서 입력 하는 URL의 기본형식은 ↓↓  인데 /manager/text/ 뒤에 필요한 값을 입력하면 됩니다.  
 
http://{host}:{port}/manager/text/{command}?{parameters}
{host} : Tomcat 이 구성된 서버의 IP 
{Port} : Tomcat이 Listen 하는 Port
{command},{parameters} : 예시 참조
 
 
그럼 조금 더 구체적인 URL 예를 들어 보겠습니다.
 
1) HTTP PUT Requet를 통하여 새로운 Application을 외부에서 디플로이 할 경우 (Context Root - /test) 
http://localhost:Port/manager/text/deploy?path=/test
 
2) Tomcat이 구성된 서버내의 WAR 파일을 디플로이 할 경우 (Context Root - /test) 
http://localhost:Port/manager/text/deploy?path=/test&war=file:/디렉토리
 
3) 기 디플로이된 Application의 변경된 파일을 반영할 할 경우 (Context Root - /test)
http://localhost:Port/manager/text/reload?path=/test

 

 

이외에도 더 다양한 기능들이 있는데 관심있으신 분들은 추가적으로 알아보신다면 많은 도움이 될 것 같습니다.

감사합니다.

 

참조:  http://tomcat.apache.org/tomcat-7.0-doc/manager-howto.html