1. Amazon Corretto 설치

sudo su

mkdir /corretto

*폴더명과 위치는 임의대로 해도 됨

cd /corretto

wget https://corretto.aws/downloads/latest/amazon-corretto-20-x64-linux-jdk.tar.gz

tar -xzvf amazon-corretto-20-x64-linux-jdk.tar.gz

 

2. 자바 환경설정

export JAVA_HOME=/corretto/amazon-corretto-20.0.2.10.1-linux-x64
export PATH=$PATH:$JAVA_HOME/bin

 

java --version

 

3. tomcat용 그룹/사용자 생성

groupadd -g 10000 tomcat

useradd -u 10000 -g 10000 -d /home/tomcat -s /bin/false -mk /etc/skel tomcat

4. tomcat 설치 및 실행

cd /home/ubuntu

*여기서 ubuntu는 유저명으로, PC마다 다름

curl -LO https://dlcdn.apache.org/tomcat/tomcat-10/v10.1.13/bin/apache-tomcat-10.1.13.tar.gz

tar -zxvf apache-tomcat-10.1.13.tar.gz

chown -R tomcat:tomcat apache-tomcat-10.1.13

 

sh /home/ubuntu/apache-tomcat-10.1.13/bin/startup.sh

 

다 마쳤으면 웹브라우저를 열어서 자기아이피:8080을 입력하고 엔터를 눌러 다음과 같은 화면이 나오는지 체크한다.

 

참고한 글 :

https://docs.aws.amazon.com/corretto/latest/corretto-20-ug/downloads-list.html

 

Downloads for Amazon Corretto 20 - Amazon Corretto 20

Thanks for letting us know this page needs work. We're sorry we let you down. If you've got a moment, please tell us how we can make the documentation better.

docs.aws.amazon.com

https://blog.naver.com/PostView.naver?blogId=oxcow119&logNo=222865174811&categoryNo=0&parentCategoryNo=0&viewDate=&currentPage=1&postListTopCurrentPage=1&from=postView 

 

우분투(Ubuntu) 톰캣(Tomcat) 설치 하기

이번 글에서는 WAS(Web Application Server) 중 하나인 톰캣(Tomcat)을 설치해 보도록 하겠습니다. ...

blog.naver.com

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

https://jin2rang.tistory.com/entry/%ED%86%B0%EC%BA%A3%EC%84%9C%EB%B2%84-%EC%84%A4%EC%A0%95-%EB%B0%8F-%EC%8B%A4%ED%96%89%ED%95%98%EA%B8%B0-A-to-Z

 

톰캣서버 올리기 (설정 및 실행하기 A to Z)

이클립스에서 톰캣 라이브러리 연결해서 서버를 올리고 내리고 했었는데, 이클립스가 아닌 톰캣서버 자체를 실행시켜보는것을 해보았다. 아직 공부하는 단계라 자세히는 모르지만 하나씩 해보

jin2rang.tistory.com

 

+ Recent posts