...
This guide covers downloading and installing Tomcat 9 on a linux server.
Prerequisites
The following instructions assume that:
- you can login as a non-root user with sudo access.
- you have installed Java, with the required settings.
...
Excerpt |
---|
Download - To find the latest version, go to the Tomcat downloads page:
- for version 8: http://tomcat.apache.org/download-80.cgi
for version 9: https://tomcat.apache.org/download-90.cgi
- Find the latest Binary Distributions section, then the Core sub-heading, and copy the tar.gz link.
To download Tomcat, on the Linux server, go to the tmp directory. Use the curl command to download from the the tar.gz link. Code Block |
---|
cd /tmp
curl -O http://mirror.ox.ac.uk/sites/rsync.apache.org/tomcat/tomcat-9/v9.0.38/bin/apache-tomcat-9.0.38.tar.gz |
InstallUnpack the Tomcat tar.gz file into /opt/tomcat . Code Block |
---|
sudo mkdir /opt/tomcat
cd /opt/tomcat
sudo tar xvf /tmp/apache-tomcat-9*tar.gz --strip-components=1 |
This creates the tomcat folders (conf, logs, webapps etc.) directly under /opt/tomcat .Set the file ownership and permissions. Code Block |
---|
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 |
|
...