톰캣에 WAR 파일을 배포하여 서버 실행하는 방법
개요
이클립스와 같은 IDE에서 웹 애플리케이션 프로젝트를 완성시 배포를 하여야 한다. 본 글의 목적은 IDE에서 컴파일하여 실행하는 것이 아닌 Windows 운영체제에서 로컬 컴퓨터에 톰캣을 설치하고 WAR 파일을 이용하여 배포하는 방법에 대해서 작성합니다.
step1 톰캣 다운로드
https://tomcat.apache.org/download-90.cgi
Apache Tomcat® - Apache Tomcat 9 Software Downloads
Welcome to the Apache Tomcat® 9.x software download page. This page provides download links for obtaining the latest version of Tomcat 9.0.x software, as well as links to the archives of older releases. Unsure which version you need? Specification version
tomcat.apache.org
step2 webapps 디렉토리에 WAR 파일 위치
step3 apache-tomcat-9.0.50/bin/startup.sh 실행
콘솔을 통하여 apache-tomcat-9.0.50/bin 디렉토리로 이동후 ./startup.sh 실행한다.
step4 브라우저를 실행후 웹 애플리케이션 실행
본인 같은 경우 http://localhost:8080/DVD/index/dvd_admin 으로 접속하였습니다.
References
https://nobacking.tistory.com/60