Installing Apache Tomcat in Debian 11
Prerrequites
The following prerequisites are assumed:
- Java is correctly installed in the machine.
- The machine is correctly updated.
- wget, vim, unzip are installed in the machine.
Download and Install Apache Tomcat
Goto https://tomcat.apache.org/download-10.cgi and download the .zip file. Donwload it to a designated directory using wget. In the case of this writing I used the following command to download the .zip file of the latest Tomcat release
$ cd /opt
$ mkdir download
$ cd download
$ wget https://dlcdn.apache.org/tomcat/tomcat-10/v10.1.9/bin/apache-tomcat-10.1.9.zip
The previous commands leaves the apache-tomcat-10.0.23.zip file in the directory /opt/download. Unzip it and the result directory move to /opt
$ unzip apache-tomcat-10.1.9.zip
$ mv apache-tomcat-10.1.9 ..