Apache Tomcat Installation Shell-Script for Debian/Ubuntu {Tested on Ubuntu 22.04 LTS with Tomcat v8.x.x, v9.x.x, v10.x.x and v11.x.x-Mxx-(alpha releases) }
cd /home
sudo wget https://raw.githubusercontent.com/prabhatraghav/tomcat-install/main/tomcat-install.sh
The Tomcat-install script is set to install Tomcat Version 10.1.18 (on port 8080) with Java version 17 as a default settings. But, you can make the necessary changes as per your requirements. To make changes to the main script, edit the "tomcat-install.sh" file and set the desired tomcat install environment elements like (TOMCAT_VERSION, TOMCAT_USER_PASS, TOMCAT_MANAGER_PASS, CUSTOM_TOMCAT_PORT, CUSTOM_JDK_VERSION etc.) and save the file before the run.
sudo nano tomcat-install.sh
sudo chmod +x tomcat-install.sh
sudo sh tomcat-install.sh
Please read the instructions carefully, echoed on the screen at the end of this script, and save the tomcat-user and manager passwords.
tomcat-up
tomcat-down
This script is developed by PRABHAT RAGHAV [email protected] (https://github.com/prabhatraghav/tomcat-install)