

Sudo firewall-cmd -add-service=http -permanentĬreate tomcat configuration file sudo vim /etc/httpd/conf.d/proxy_nfĪdd: ProxyPass /tomcat9/ ajp://localhost:8009/Īccess to and confirm that the change is working as expected. Sudo systemctl start httpd & sudo systemctl enable httpd

You can configure Apache http server to access Tomcat interface without specifying port 8080 Tomcat default website is available on Īdministration guide is available on Step 6: Proxy Pass Access to Tomcat with Apache HTTP server ( Optional) If you have an active firewall service, allow port 8080 sudo firewall-cmd -add-port=8080/tcp The service should be listening on port 8080 $ sudo ss -tunelp | grep 8080 Nov 10 06:34:50 fed29 systemd: Started Apache Tomcat 9. Nov 10 06:34:50 fed29 startup.sh: Tomcat started. Nov 10 06:34:50 fed29 systemd: Starting Apache Tomcat 9.

Create a new file under: sudo tee /etc/systemd/system/rvice The last step is to create a service unit file for tomcat. sudo chown -R tomcat:tomcat /usr/libexec/tomcat9 Step 5: Create Tomcat Systemd service Sudo useradd -M -d /usr/libexec/tomcat9 -g tomcat tomcatĬhange the ownership of the /usr/libexec/tomcat9directory to the tomcat user and group. This user will be named tomcat sudo groupadd -system tomcat Wget $ /usr/libexec/tomcat9 Step 4: Add Tomcat user and group How to install Tomcat on Ubuntu / Debian export VER=" 9.0.71"
