Save and close the file, then repeat for Host Manager: Opt/tomcat/webapps/manager/META-INF/context.xml.
To learn more about these commands and what they do, visit Linux Permissions Basics and How to Use Umask on a VPS.
sudo chown -R tomcat:tomcat /opt/tomcat/īoth commands update the settings of your tomcat installation.
Since you have already created a user, you can now grant tomcat ownership over the extracted installation by running: sudo tar xzvf apache-tomcat-10*tar.gz -C /opt/tomcat -strip-components = 1.Then, extract the archive you downloaded by running: The wget command downloads resources from the Internet. At the time of writing, the latest version was 10.0.20.ĭownload the archive using wget by running the following command: Select the latest Core Linux build, ending in.
To install Tomcat, you’ll need the latest Core Linux build for Tomcat 10, which you can get from the downloads page. OpenJDK 64-Bit Server VM (build 11.0.14+9-Ubuntu-0ubuntu2.20.04, mixed mode, sharing) OpenJDK Runtime Environment (build 11.0.14+9-Ubuntu-0ubuntu2.20.04) When the installation finishes, check the version of the available Java installation: Then, install the JDK by running the following command:Īnswer y when prompted to continue with the installation. First, update the package manager cache by running: