The Apache Tomcat® software is an open source implementation of the Java Servlet, JavaServer Pages, Java Expression Language and Java WebSocket technologies. The Java Servlet, JavaServer Pages, Java Expression Language and Java WebSocket specifications are developed under the Java Community Process.
If we want to send dynamic data or to make our website dynamic, we need to use the servlet. Hence, we generally need an HTTP server and what else we need is a container where we will run or servlet, so when we combine the HTTP server and the servlet (or we can say servlet container), they both combine to become a single server know as tomcat server.
Open-source and free
Reliable, stable software.
Flexible due to its module-based structure.
Provides external layer of security
Well documented and highly used
Easy configurable AMI with pre-installed Apache Tomcat sever 10
INSTALLATION VIA AWS MARKETPLACE
Kindly click on the below link to install the server via AWS Marketplace:
To verify the installation, follow the below instructions:
Step 1. Connect to SSH
In a terminal window, use the ssh command to connect to the instance. You specify the user name for your instance, and the public DNS name or IPv6 address for your instance, the path and file name of the private key (.pem).
ssh rocky@publicIP -i [Path of key pair file]
If it shows access denied message run the following command , then run the above command again to connect via ssh.
chmod 400 [Path of key pair file]
Step 2. Login via Instance ID
Follow the steps to login
1. Go to browser and open http://<your-ip-address>:8080
2. Click on Manager App or Host Manager whichever you want to open
Enter the username - admin and password - <Instance ID>
Manager App: See screenshot below
Host Manager: See screenshot below