How to put my Java project in production server VPS CentOS 8

Einfach Dinge, die nichts mit XAMPP, Apache Friends, Apache, MySQL, PHP und alle dem zu tun haben. Allerlei halt. ;)

How to put my Java project in production server VPS CentOS 8

Postby Cezar Apulchro » 11. August 2022 12:43

Hi, I finished my project java web and I wanna load to production I do this simply transferring my .war file by FileZilla client but when I call the page the browser load the test page of apache. What more I must todo to solve this problem? This is my first time that I do transfer to production environment.

Thanks in advance.
Cezar Apulchro
 
Posts: 11
Joined: 15. July 2022 20:32
Operating System: Centos 8

Re: How to put my Java project in production server VPS Cent

Postby Nobbie » 11. August 2022 21:55

You dont need an Apache Server, instead you need a Tomcat server for .war Containers, Toncat is based on Apache, but it has a JavaServer implemented (what you need), whereas plain Apache does not have a Java Environment. Tomcat per Default listens to Port 8080 instead of Apaches Port 80.

I found this tutorial https://www.baeldung.com/tomcat-deploy-war, maybe it helps.
Nobbie
 
Posts: 13170
Joined: 09. March 2008 13:04


Return to Allerlei

Who is online

Users browsing this forum: No registered users and 11 guests