

We need to provide the required permission to tomcat user so that it can access the tomcat directory and files etc. First, move to the directory where the file is downloaded if you already in that location then there is no need to run this command –Įxecute the following command in your terminal – sudo tar xf apache-tomcat-9*.tar.gz -C /opt/tomcat -strip-components=1 Grant required permissions
MAINTAINERD APACHE TOMCAT 8 INSTALL
Once it gets downloaded extract it into the directory where you want to install it.
MAINTAINERD APACHE TOMCAT 8 DOWNLOAD
Or copy the link and use the wget command to download it-Ĭhange to the directory where you want to download it – cd Download/ wget Open the download page and click on the link as shown in the image below – tar.gz file from the core list under the binary distribution section of the download page. Download and install TomcatĪt the time of writing this article, Tomcat 9.0.33 is a stable version of Tomcat available.

Let’s download and install the Apache Tomcat in our system. Use the following command to create user and group – sudo useradd -r -m -U -d /opt/tomcat -s /bin/false tomcat The newly created user will have the home directory /opt/tomcat. We will create a new system user and a group named tomcat to run the Tomcat services. Create a user tomcatįor security reasons, you should not run tomcat under the root user. You can verify the installation with – java -versionįor more details, you can read the Java installation guide.
