Chris Welford
Dec 05, 2024
Dec 09, 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 https://downloads.apache.org/tomcat/tomcat-9/v9.0.97/bin/apache-tomcat-9.0.97.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:tomcat webapps/tomcat work/ temp/ logs/ sudo chgrp -R tomcat .cd tomcat sudo chmod -R g+r conf sudo chmod g+x conf