Zoe Baldwin
Chris Welford
Aug 13, 2024
Dec 05, 2024
...
Download
To download Tomcat, on the Linux server, go to the tmp directory. Use the curl command to download from the the tar.gz link.
tmp
curl
cd /tmp curl -O httphttps://mirror.ox.ac.uk/sites/rsyncdownloads.apache.org/tomcat/tomcat-9/v9.0.3897/bin/apache-tomcat-9.0.3897.tar.gz
Unpack the Tomcat tar.gz file into /opt/tomcat.
tar.gz
/opt/tomcat
sudo mkdir /opt/tomcat cd /opt/tomcat sudo tar xvf /tmp/apache-tomcat-9*tar.gz --strip-components=1
Set the file ownership and permissions.
cd /opt/tomcat sudo chown -R tomcat webapps/ work/ temp/ logs/ sudo chgrp -R tomcat . sudo chmod -R g+r conf sudo chmod g+x conf