톰캣

톰캣 버전 업그레이드 하기

Gyona 2024. 5. 31. 13:16

서버에 설치된 톰캣버전의 취약성 때문에 톰켓업그레이드 요청사항이 들어왔다.

방법은 간단하다.

최신 톰캣을 사이트에서 다운로드 해준다.

난 9버전의 9.0.88를 다운로드했다.현재는 89가 올라와있네..ㅎㅎ

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

 

 리눅스로 설치하는것이기때문에 tar-zip으로 다운로드 했다.

서버에 다운로드할 파일을 올리고

tar -xvf apache-tomcat-9.0.88.tar.gz 

명령어로 압축을 해제해준다. 이름도 tomcat으로 바꿔줬다.

 

 

cd /usr/local/server/tomcat/conf/

여기 경로로 들어가면 server.xml파일이 있다.

localhost 부분에 프로젝트 경로를 넣어주면 된다.

 

Host name="localhost"의
<Context path="" docBase="프로젝트경로"  reloadable="false"  
  allowLinking="true"/> 

추가하기

 

톰캣재시작하여 확인하면 끝!