1. 톰캣 설치 명령어
1) sudo apt-get install tomcat9
2) Y
2. 톰캣 설치 확인 명령어
/usr/share/tomcat9/bin/version.sh
3. 설치 결과 확인
Using CATALINA_BASE: /usr/share/tomcat9
Using CATALINA_HOME: /usr/share/tomcat9
Using CATALINA_TMPDIR: /usr/share/tomcat9/temp
Using JRE_HOME: /usr/lib/jvm/java-8-openjdk-amd64
Using CLASSPATH: /usr/share/tomcat9/bin/bootstrap.jar:/usr/share/tomcat9/bin/tomcat-juli.jar
Server version: Apache Tomcat/9.0.16 (Ubuntu)
Server built: Sep 11 2019 19:47:51 UTC
Server number: 9.0.16.0
OS Name: Linux
OS Version: 4.15.0-1050-aws
Architecture: amd64
JVM Version: 1.8.0_222-8u222-b10-1ubuntu1~18.04.1-b10
JVM Vendor: Private Build
4. http://13.125.253.147 접속하면 그대로 아파치가 돌고
4. http://IPv4 퍼블릭 IP:8080/으로 뜨는지 확인
잘동작한다면 아래와 같은 결과가 나온다
It works !
If you're seeing this page via a web browser, it means you've setup Tomcat successfully. Congratulations!
This is the default Tomcat home page. It can be found on the local filesystem at: /var/lib/tomcat9/webapps/ROOT/index.html
Tomcat veterans might be pleased to learn that this system instance of Tomcat is installed with CATALINA_HOME in /usr/share/tomcat9 and CATALINA_BASE in /var/lib/tomcat9, following the rules from /usr/share/doc/tomcat9-common/RUNNING.txt.gz.
You might consider installing the following packages, if you haven't already done so:
tomcat9-docs: This package installs a web application that allows to browse the Tomcat 9 documentation locally. Once installed, you can access it by clicking here.
tomcat9-examples: This package installs a web application that allows to access the Tomcat 9 Servlet and JSP examples. Once installed, you can access it by clicking here.
tomcat9-admin: This package installs two web applications that can help managing this Tomcat instance. Once installed, you can access the manager webapp and the host-manager webapp.
NOTE: For security reasons, using the manager webapp is restricted to users with role "manager-gui". The host-manager webapp is restricted to users with role "admin-gui". Users are defined in /etc/tomcat9/tomcat-users.xml.
'BackEnd > Aws' 카테고리의 다른 글
RDS 처음 생성 설정값들 (0) | 2019.09.29 |
---|---|
ec2 우분투에 아파치와 톰캣 연동 (0) | 2019.09.29 |
ec2 우분투에 자바설치 (0) | 2019.09.29 |
aws ec2 웹서버(아파치) 설치 (0) | 2019.09.29 |
AWS - EC2 설치과정 (0) | 2019.09.28 |