구디아카데미/JAVA
0203 ubuntu에 Tomcat10 세팅 후 *.war 배포
COCO_develop
2025. 2. 3. 14:50
현재 위치 확인: pwd
https://tomcat.apache.org/download-10.cgi
Apache Tomcat® - Apache Tomcat 10 Software Downloads
Welcome to the Apache Tomcat® 10.x software download page. This page provides download links for obtaining the latest version of Tomcat 10.1.x software, as well as links to the archives of older releases. Unsure which version you need? Specification versi
tomcat.apache.org
tar.gz 우클릭-링크 주소 복사
https://dlcdn.apache.org/tomcat/tomcat-10/v10.1.34/bin/apache-tomcat-10.1.34.tar.gz
톰캣10 압축파일 다운로드: sudo wget 링크
다운로드 파일 확인: ls
파일 압축 해제: sudo tar xvfz
...
톰켓10 폴더에 chmod명령어 쓰기 권한 설정 (war파일 업로드시 필요)
ubuntu@ip-172-26-8-212:~$ sudo chmod -R 777 /home/ubuntu/apache-tomcat-10.1.34
server.xml port="8080" -> "80"
sudo vim /home/ubuntu/apache-tomcat-10.1.34/conf/server.xml
context.xml <Context>에 allowCasualMultipartParsing="true" path="/" 추가
sudo vim /home/ubuntu/apache-tomcat-10.1.34/conf/context.xml
톰캣 실행
sudo /home/ubuntu/apache-tomcat-10.1.34/bin/startup.sh
-->
IP로 접속하여 톰캣 확인