Apache Tomcat
Apache Tomcat
Apache Tomcat
• Apache Tomcat runs on 8080 port by default (we can also change that port )
Note: We will keep all war files in webapps folder for deployment , thats why webpps called
deployment folder
$java -version
Note: If we have multiple java version installed then we can switch to particular version using
below command
• We can find Apache Tomcat URLs to downloads in official website downloads page
• Copy the URL of tar file and execute below command in Linux machine
$ wget< tomcat-tar-file-url>
After tomcat tar file got download the extract Tomcat Tar file using below command
$ tar -xvf<tomcat-tar-file-name>
$ls -lrt
$cd bin/
$./startup.sh
Note: Tomcat server runs on 8080 port by Default . Enable this port in security group as custom tcp
Portoal : TCP
• By Default the Host Manager is only accessible from a browser running on the same
machine as Tomcat.
• If you wish to modify this restriction, you 'll need to edit the Host Manager 's Context.xml
file.
When We change tomcat port number in server.xml file then we have to enable that port
in security Group which is associated with our EC2 Instance.
<html>
<body>
<h1><font color='red'> Welcome to divyalearn.online...!! <font></h1>
<h2> Learn here .... Lead Anywhere ...!! </h2>
<a href="https://learnwithdivya.hashnode.dev"> click Here To see My
Blogs</a>
</body>
</html>
CONCLUSION
Stop Apache Tomcat Server
Stop EC2 instance