How to install Tomcat on AWS EC2

How to install Tomcat on AWS EC2

Log in to EC2 via ssh and install with the following command.

sudo yum install tomcat

To check the version, run the following command

tomcat version

Install webapps and admin-webapps to manage the administration screen so that you can check it with a browser.

sudo yum install tomcat-webapps admin-webapps

To start Tomcat, use the following command

sudo systemctl start tomcat

To stop Tomcat, use the following command

sudo systemctl stop tomcat

AWS EC2にTomcatをインストールする方法

If “8080” is not released inbound, it cannot be viewed as “http://グローバルIP:8080/”, so please add “8080” to the inbound security group.

Tomcat home directory

/usr/share/tomcat/

Install a specific version of Tomcat with yum

First, a list of available installations is displayed.

sudo yum --showduplicates search tomcat

The list is displayed.

tomcat-admin-webapps-7.0.76-3.amzn2.noarch : The host-manager and manager web applications for Apache Tomcat
tomcat-admin-webapps-7.0.76-6.amzn2.noarch : The host-manager and manager web applications for Apache Tomcat
tomcat-admin-webapps-7.0.76-8.amzn2.noarch : The host-manager and manager web applications for Apache Tomcat
tomcat-admin-webapps-7.0.76-9.amzn2.noarch : The host-manager and manager web applications for Apache Tomcat
tomcat-admin-webapps-7.0.76-10.amzn2.0.1.noarch : The host-manager and manager web applications for Apache Tomcat
tomcat-admin-webapps-7.0.76-10.amzn2.0.2.noarch : The host-manager and manager web applications for Apache Tomcat
tomcat-docs-webapp-7.0.76-3.amzn2.noarch : The docs web application for Apache Tomcat
tomcat-docs-webapp-7.0.76-6.amzn2.noarch : The docs web application for Apache Tomcat
tomcat-docs-webapp-7.0.76-8.amzn2.noarch : The docs web application for Apache Tomcat
tomcat-docs-webapp-7.0.76-9.amzn2.noarch : The docs web application for Apache Tomcat
tomcat-docs-webapp-7.0.76-10.amzn2.0.1.noarch : The docs web application for Apache Tomcat
tomcat-docs-webapp-7.0.76-10.amzn2.0.2.noarch : The docs web application for Apache Tomcat
tomcat-javadoc-7.0.76-3.amzn2.noarch : Javadoc generated documentation for Apache Tomcat
tomcat-javadoc-7.0.76-6.amzn2.noarch : Javadoc generated documentation for Apache Tomcat
tomcat-javadoc-7.0.76-8.amzn2.noarch : Javadoc generated documentation for Apache Tomcat
tomcat-javadoc-7.0.76-9.amzn2.noarch : Javadoc generated documentation for Apache Tomcat
tomcat-javadoc-7.0.76-10.amzn2.0.1.noarch : Javadoc generated documentation for Apache Tomcat
tomcat-javadoc-7.0.76-10.amzn2.0.2.noarch : Javadoc generated documentation for Apache Tomcat
tomcat-jsp-2.2-api-7.0.76-3.amzn2.noarch : Apache Tomcat JSP API implementation classes
tomcat-jsp-2.2-api-7.0.76-6.amzn2.noarch : Apache Tomcat JSP API implementation classes
tomcat-jsp-2.2-api-7.0.76-8.amzn2.noarch : Apache Tomcat JSP API implementation classes
tomcat-jsp-2.2-api-7.0.76-9.amzn2.noarch : Apache Tomcat JSP API implementation classes
tomcat-jsp-2.2-api-7.0.76-10.amzn2.0.1.noarch : Apache Tomcat JSP API implementation classes
tomcat-jsp-2.2-api-7.0.76-10.amzn2.0.2.noarch : Apache Tomcat JSP API implementation classes
tomcat-jsp-2.2-api-7.0.76-10.amzn2.0.2.noarch : Apache Tomcat JSP API implementation classes
tomcat-jsvc-7.0.76-3.amzn2.noarch : Apache jsvc wrapper for Apache Tomcat as separate service
tomcat-jsvc-7.0.76-6.amzn2.noarch : Apache jsvc wrapper for Apache Tomcat as separate service
tomcat-jsvc-7.0.76-8.amzn2.noarch : Apache jsvc wrapper for Apache Tomcat as separate service
tomcat-jsvc-7.0.76-9.amzn2.noarch : Apache jsvc wrapper for Apache Tomcat as separate service
tomcat-jsvc-7.0.76-10.amzn2.0.1.noarch : Apache jsvc wrapper for Apache Tomcat as separate service
tomcat-jsvc-7.0.76-10.amzn2.0.2.noarch : Apache jsvc wrapper for Apache Tomcat as separate service
tomcat-lib-7.0.76-3.amzn2.noarch : Libraries needed to run the Tomcat Web container
tomcat-lib-7.0.76-6.amzn2.noarch : Libraries needed to run the Tomcat Web container
tomcat-lib-7.0.76-8.amzn2.noarch : Libraries needed to run the Tomcat Web container
tomcat-lib-7.0.76-9.amzn2.noarch : Libraries needed to run the Tomcat Web container
tomcat-lib-7.0.76-10.amzn2.0.1.noarch : Libraries needed to run the Tomcat Web container
tomcat-lib-7.0.76-10.amzn2.0.2.noarch : Libraries needed to run the Tomcat Web container
tomcat-lib-7.0.76-10.amzn2.0.2.noarch : Libraries needed to run the Tomcat Web container
tomcat-native-1.2.23-4.amzn2.i686 : Tomcat native library
tomcat-native-1.2.23-4.amzn2.x86_64 : Tomcat native library
tomcat-native-1.2.30-1.amzn2.i686 : Tomcat native library
tomcat-native-1.2.30-1.amzn2.x86_64 : Tomcat native library
tomcat-servlet-3.0-api-7.0.76-3.amzn2.noarch : Apache Tomcat Servlet API implementation classes
tomcat-servlet-3.0-api-7.0.76-6.amzn2.noarch : Apache Tomcat Servlet API implementation classes
tomcat-servlet-3.0-api-7.0.76-8.amzn2.noarch : Apache Tomcat Servlet API implementation classes
tomcat-servlet-3.0-api-7.0.76-9.amzn2.noarch : Apache Tomcat Servlet API implementation classes
tomcat-servlet-3.0-api-7.0.76-10.amzn2.0.1.noarch : Apache Tomcat Servlet API implementation classes
tomcat-servlet-3.0-api-7.0.76-10.amzn2.0.2.noarch : Apache Tomcat Servlet API implementation classes
tomcat-servlet-3.0-api-7.0.76-10.amzn2.0.2.noarch : Apache Tomcat Servlet API implementation classes
tomcat-webapps-7.0.76-3.amzn2.noarch : The ROOT and examples web applications for Apache Tomcat
tomcat-webapps-7.0.76-6.amzn2.noarch : The ROOT and examples web applications for Apache Tomcat
tomcat-webapps-7.0.76-8.amzn2.noarch : The ROOT and examples web applications for Apache Tomcat
tomcat-webapps-7.0.76-9.amzn2.noarch : The ROOT and examples web applications for Apache Tomcat
tomcat-webapps-7.0.76-10.amzn2.0.1.noarch : The ROOT and examples web applications for Apache Tomcat
tomcat-webapps-7.0.76-10.amzn2.0.2.noarch : The ROOT and examples web applications for Apache Tomcat
tomcatjss-7.2.1-6.amzn2.noarch : JSS Connector for Apache Tomcat, a JSSE module for Apache Tomcat that uses JSS
tomcatjss-7.2.1-8.amzn2.0.1.noarch : JSS Connector for Apache Tomcat, a JSSE module for Apache Tomcat that uses JSS
tomcatjss-7.2.5-1.amzn2.0.1.noarch : JSS Connector for Apache Tomcat, a JSSE module for Apache Tomcat that uses JSS
tomcat-7.0.76-3.amzn2.noarch : Apache Servlet/JSP Engine, RI for Servlet 3.0/JSP 2.2 API
tomcat-7.0.76-6.amzn2.noarch : Apache Servlet/JSP Engine, RI for Servlet 3.0/JSP 2.2 API
tomcat-7.0.76-8.amzn2.noarch : Apache Servlet/JSP Engine, RI for Servlet 3.0/JSP 2.2 API
tomcat-7.0.76-9.amzn2.noarch : Apache Servlet/JSP Engine, RI for Servlet 3.0/JSP 2.2 API
tomcat-7.0.76-10.amzn2.0.1.noarch : Apache Servlet/JSP Engine, RI for Servlet 3.0/JSP 2.2 API
tomcat-7.0.76-10.amzn2.0.2.noarch : Apache Servlet/JSP Engine, RI for Servlet 3.0/JSP 2.2 API
tomcat-el-2.2-api-7.0.76-3.amzn2.noarch : Expression Language v2.2 API
tomcat-el-2.2-api-7.0.76-6.amzn2.noarch : Expression Language v2.2 API
tomcat-el-2.2-api-7.0.76-8.amzn2.noarch : Expression Language v2.2 API
tomcat-el-2.2-api-7.0.76-9.amzn2.noarch : Expression Language v2.2 API
tomcat-el-2.2-api-7.0.76-10.amzn2.0.1.noarch : Expression Language v2.2 API
tomcat-el-2.2-api-7.0.76-10.amzn2.0.2.noarch : Expression Language v2.2 API
tomcat-el-2.2-api-7.0.76-10.amzn2.0.2.noarch : Expression Language v2.2 API

Install 7.0.76-10.amzn2.0.2.

sudo yum install tomcat-7.0.76-10.amzn2.0.2

This completes the installation of the specific version of Tomcat.

コメント

Discover more from 株式会社CONFRAGE ITソリューション事業部

Subscribe now to keep reading and get access to the full archive.

Continue reading

Copied title and URL