Posts

Tomcat installation on EC2 instance

Pre-requisites EC2 instance with Java 11 Install Apache Tomcat Download tomcat packages from  https://tomcat.apache.org/download-80.cgi  onto /opt on EC2 instance Note: Make sure you change  <version>  with the tomcat version which you download. # Create tomcat directory cd /opt wget http://mirrors.fibergrid.in/apache/tomcat/tomcat-8/v8.5.35/bin/apache-tomcat-8.5.35.tar.gz tar -xvzf /opt/apache-tomcat- < version > .tar.gz give executing permissions to startup.sh and shutdown.sh which are under bin. chmod +x /opt/apache-tomcat- < version > /bin/startup.sh chmod +x /opt/apache-tomcat- < version > /bin/shutdown.sh Note: you may get below error while starting tomcat incase if you dont install Java Neither the JAVA_HOME nor the JRE_HOME environment variable is defined At least one of these environment variable is needed to run this program create link files for tomcat startup.sh and shutdown.sh ln -s /opt/apache-tomcat- < version > /bin/s...