To verify that Tomcat is working, visit the IP.of.rver:8080 in a web browser. Using CLASSPATH: /opt/tomcat/bin/bootstrap.jar:/opt/tomcat/bin/tomcat-juli.jar
Using JRE_HOME: /usr/lib/jvm/java-7-openjdk-amd64/ To activate Tomcat, run the following script: Tomcat and Java should now be installed and configured on your server. bashrc file, then run the following command to register the changes: Likewise, if you installed Tomcat in a different folder other than /opt/tomcat (as suggested) you’ll indicate the path in your bash file and edit the lines above. Older versions of Java may say java-7-openjdk-amd64 instead of java-1.8.0-openjdk-amd64. Verify your file paths! If you downloaded a different version or already installed Java, you may have to edit the file path or name. Next from your server, use wget command to download the tar to the tomcat folder from the URL you copied in the previous step: This page provides download links for obtaining the latest versions of all Tomcat release branches, as well as links to the archives of older releases. At the time of this article Tomcat 8 is the newest version but feel free to pick whatever version is more up-to-date. Tomcat 5 Downloads: Welcome to the Tomcat 5.x download page. Place your cursor under 8.5.32 Binary Distributions, right click on the tar file and select copy link address (as shown in the picture below).
Logged in as root, within the /opt folder make a directory called tomcat and cd into that folder after completion.Ĭd /opt/tomcat Step 2: Install Tomcat Through WgetĬlick this link to the Apache Tomcat 8 Download site. Installing Apache Tomcat 8 Step 1: Create the Tomcat Folder