Tomcat is one of the leading projects at Apache Software Foundation and according to an estimate, the download count is more than 10 million. With the evolution of Java programs, the Apache tomcat has also gained heights of popularity and this fame can be verified by its use case in leading data centers across the globe.
Tomcat provides a cross-platform availability that allows users of Windows and macOS to use it. Moreover, it is open source as well, making it suitable for Linux-based systems as well.
Following the importance of this beneficial tool, we have compiled a procedural demonstration that guides on how to install the Apache Tomcat server on Manjaro Linux.
How to install Apache Tomcat on Manjaro Linux
The Apache Tomcat can be installed on Manjaro using the command line as well as the graphical interface of Manjaro. This section describes both methods to get tomcat for your Manjaro system.
How to install Apache Tomcat on Manjaro using command line interface
Before going for tomcat installation, make sure you have supported Java installed on your Manjaro system. The Apache Tomcat versions are 9.0.x and 10.0.x support Java 8.0 or later. Moreover, you can click here to get the supported Java version against each Tomcat release. Currently, the stable release of Tomcat is 10.0.12, so for this, we need Java 8.0 or later versions. The first step here refers to the installation of OpenJDK on Manjaro.
Step 1 : Firstly, synchronize and update the packages database by providing the command written below.
The command written below will install the latest version of OpenJDK (Java Development Kit that is required for the development of Java programs).
The command line support of Manjaro allows you to get the latest version of tomcat from the project’s site.
Step 2 : After getting JDK, the following command will download the tomcat-10.0.12 from the official project’s site.
After the download, check the md5 authentication method or authentication of the key provided by tomcat. To do so use the below-mentioned command :
Step 3 : Once the authentication step is performed, you can now extract the downloaded tomcat by the following command :
After that, it is recommended to perform some configuration steps that are necessary to run the tomcat server.
Firstly change the user and group of the tomcat directory. To do so, we have executed the following commands.
Once the above steps are performe, you can now start/stop the Tomcat server on Manjaro Linux.
Start/Stop Tomcat server on Manjaro Linux
After setting the permission and ownership, you can start the tomcat server by issuing the following command.
You can observe that the Tomcat server has been started. After that, you can access the web interface of tomcat by using the localhost:8080 webaddress in your favorite browser.
Note: It is noticed that if tomcat is not running, you cannot access the web.
Moreover, you can stop the tomcat server by executing the following command.
How to install Apache Tomcat on Manjaro using graphical interface
The tomcat is available on the official repository of Manjaro and you can install it from “Add/Remove Software” support of Manjaro and the steps are mentioned here.
Step 1 : Click on the shield icon (refers to package manager) placed on the top bar of Manjaro (GNOME Desktop Environment), and then navigate to “Package Manager“.
Note : This step can be carried out in other desktop environments of Manjaro by searching for “Add/Remove Software“.
Step 2 : After that, move to “Search” icon placed on the menu bar as can be seen in the image below.
Search for tomcat. The search result contains multiple versions of tomcat. Click on the latest stable version that is tomcat10.
Click on the Install button and then navigate to Apply to start getting things ready for installation.
Step 3 : Now, click on Choose to get the list of dependencies.
Authenticate yourself by providing your password.
As we are installing tomcat10, for that JDK version 8 or greater is required. You may choose any verison but it is suggested to go with the latest available.
The following window contains the list of packages/dependencies that will be installed. Click on Apply to move forward.
The installation will be completed after a few moments.
Here you go, you are finally done with the installation of the tomcat on Manjaro.
Tomcat is an open-source service to run Java code by providing a web server environment . In this article, you would have learned to install Tomcat on the Manjaro Linux. This guide provides command line and graphical support to get Tomcat on Manjaro Linux. Graphical interface installation provides support to get JDK with tomcat, however, you have to install JDK separately while following the command line process. Alongside the installation, we have provided a preliminary configuration that is required to run the Tomcat on Manjaro Linux.