We create a symbolic link /opt/tomcat pointing to /opt/apache-tomcat-8.5.37:.Next we extract the package with unzip in-place:.The mirror may vary by location, for optimal performance, use the mirror closest to your location. Let’s switch to this directory:Īnd download the package directly to this path: # wget By browsing the download site of Tomcat 8, we can copy the link we need, and use wget on the target system.We’ll use /opt as the base path of the installation, as it is a common place for software installed by hand. First, we’ll download and extract the zip package.Of course this may not be optimal from the security perspective.įor this installation to work you need to have Java 1.8 installed on the target system.
The most trivial example would be that the rpm package is not available, another could be that the application that will run in the Tomcat container requires an exact version of tomcat, and by leaving the package manager out of the installation it is ensured that system updates will leave the Tomcat server untouched. While installing from rpm is a much more convenient way, there may be situations where it is not an option. Therefore the user that will be running the server, filesystem paths and rights must be set by hand. We will install a Tomcat server not from an rpm package, but a zip file that we will download from the official site.
How to install apache tomcat on Linux Redhat 8 step by step instructions $ – requires given linux commands to be executed as a regular non-privileged user # – requires given linux commands to be executed with root privileges either directly as a root user or by use of sudo command
Privileged access to your Linux system as root or via the sudo command. Requirements, Conventions or Software Version Used Software Requirements and Conventions Used Software Requirements and Linux Command Line Conventions Category