# chown -R tomcat:tomcat /usr/local/tomcat9 Once the tomcat user is created, give it permissions and ownership rights to the Tomcat installation directory and all of its contents using the following chown command. The service will run with permissions of a system user called tomcat which you need to create it using useradd command. To easily manage the Apache Tomcat daemon, you need to run it as a service under systemd (system and service manager). Step 3: Running Apache Tomcat Under Systemd in RHEL 8
# dnf install java-11-openjdk-devel #install JDK 11 # dnf install java-1.8.0-openjdk-devel #install JDK 8
To install Java on RHEL 8, first, update the system packages and install the default available version of Java 8 or Java 11 using the following dnf commands as shown. If you’re looking to have Tomcat on RHEL/CentOS 7, follow this article to Install Apache Tomcat on RHEL/CentOS 7. This article will walk you throughout the installation and configuration of Apache Tomcat 9 with remote access to the web interface on RHEL 8 Linux. It is an implementation of the Java Servlet, JavaServer Pages (JSP), Java Expression Language (EL) and Java WebSocket technologies, and provides a pure Java HTTP server to run Java web-based applications. Apache Tomcat is an open-source, lightweight, powerful and widely-used web server developed and maintained by Apache Foundation.