Tomcat setting for Production

Open AWS console and launch an instance ec2 with the configuration of Amazon-Linux-2 5.0kernel,key-pair, security group

 Successfully launch an Instance.

Now install the tomcat and change the configuration settings.

  1. Install java in the console.
  2. amazon-linux-extras install java-open-jdk11 -y
  3. Goto  dlcdn.apache.org and select /tomcat/tomcat-9/v9.0.87/bin/

Copy the url which is in redmark.

check the box and connect to the console terminal.

Give the commands in the above screenshot,

And I am pasting here the commands,

      “ amazon-linux-extras install java-openjdk11 -y”

      “ls”

     “ wget https://dlcdn.apache.org/tomcat/tomcat-9/v9.0.87/bin/apache-tomcat-9.0.87.tar.gz”

     “ ls”

     “ tar -zxvf apache-tomcat-9.0.87.tar.gz”

enter to,

“ cd apache-tomcat-9.0.87 “

change the directory to

“cd /webapps/manager/META-INF”

give the command “vim context.xml”

And change the .xml file

allow=”.*”

Give the command

in “conf” directory check for tomcat-users.xml

vim tomcat-users.xml


start the tomcat server

cd . .

Cd bin/./startup.sh

now open your tomcat web application now, give the  ipaddress:8080

1 thought on “Tomcat setting for Production”

Leave a Comment