简体   繁体   English

Apache Tomcat服务器上的数据库PostgreSQL

[英]database postgresql on apache tomcat server

I don't find the solution for my specific problem, therefore, I ask for you help. 我找不到针对我的特定问题的解决方案,因此,我需要您的帮助。

I developed a java application using Spring, JPA/Hibernate and Vaadin. 我使用Spring,JPA / Hibernate和Vaadin开发了一个Java应用程序。 The database is on PostgreSQL. 该数据库位于PostgreSQL上。

The application on my computer run on localhost:8080 and bind the database on localhost:5432; 我计算机上的应用程序在localhost:8080上运行,并在localhost:5432上绑定数据库。

In order for my colleagues to use it, I need now to deploy my application on a virtal server Tomcat. 为了让我的同事使用它,我现在需要在虚拟服务器Tomcat上部署我的应用程序。 The address of this Tomcat is like 10.152.487.12:8080... 该Tomcat的地址类似于10.152.487.12:8080 ...

I want to create a war of my application in java and deploy it on Tomcat. 我想用Java创建应用程序大战并将其部署在Tomcat上。 But, where I can put the database and how ? 但是,我可以在哪里放置数据库,又如何放置?

Apache Tomcat allow the creation of a Postgresql server on 8080 port ? Apache Tomcat允许在8080端口上创建Postgresql服务器吗? Apache Tomcat allow the installation of a Postgresql server on 5432 like 10.152.487.12:5432 ? Apache Tomcat允许在5432上安装Postgresql服务器,例如10.152.487.12:5432吗?

Please, I need help, thank you in advance ! 请,我需要帮助,提前谢谢!

I found the solution ! 我找到了解决方案!

Yes, I am a newbie, but I think another peoples can be in the same situation, therefore... 是的,我是新手,但我认为其他民族也可能处于同样的情况,因此...

You open the "Remote Desktop" on windows if the server where Tomcat turn on is Windows Server. 如果打开Tomcat的服务器是Windows Server,则可以在Windows上打开“远程桌面”。 Then, you enter the IP address of the server (without the port 8080 of course). 然后,输入服务器的IP地址(当然没有端口8080)。 Then, you arrive on the server, you can go on Internet for download PostgreSQL (warning, desactivate the security of the browser, it not allow you to surf !). 然后,您到达服务器,就可以在Internet上下载PostgreSQL(警告,请取消激活浏览器的安全性,不允许您浏览!)。

Finally, install, enjoy ! 最后,安装,享受!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM