我可以在一台服务器上拥有多个 Java 应用程序服务器吗?

发布于 2024-09-16 17:08:15 字数 97 浏览 6 评论 0原文

是否可以在一台服务器或 VPS 上安装多个 Java 应用程序服务器? 我想安装 JBOSS 、 TOMCAT 、 WEBLOGIC 和我的更多。 这怎么可能,有什么好处和坏处?!

is it possible to install more than one java application server on one server or VPS ?
i want to install JBOSS , TOMCAT , WEBLOGIC and my be more.
how this is possible and what the benefits and disadvantages ?!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(5

染火枫林 2024-09-23 17:08:15

如果您想尝试所有这些,这是可能的。您只需为每个服务选择不同的端口即可。

有真正的用例吗?您可能有一个应用程序绑定到您的应用程序服务器,并且您可能希望运行不同的应用程序。

It is possible, if you want to try all of them. You just have to select different port for each services.

Is there a real use-case ? You could have an application bound to your application server, and you could want to run different applications.

冰之心 2024-09-23 17:08:15

是的。通常的问题是给定端口只能由单个进程使用。

因此,您不能在端口 8080 上同时拥有 JBoss 和 Weblogic。正常操作还需要许多额外的端口。这充其量是乏味的。

Yes. The usual problem is that a given port can only be used by a single process.

Hence you cannot have both JBoss and Weblogic on port 8080. Also a lot of extra ports are needed for normal operation. This is at best tedious.

破晓 2024-09-23 17:08:15

这是可能的。您需要注意这些服务器使用的端口。

此外,您还需要检查服务器上有哪些资源(CPU/核心/RAM)。您的系统应该有足够的资源来运行多个服务器。

我不知道什么是用例,但如果可能的话,我更喜欢在单个 Java 应用程序服务器上拥有各种 Web 应用程序。

This is possible. You need to take care about port's these servers use.

Also you need to check what resources (cpu's/core/RAM) you have on your server. Your system should have ample resources to Run multiple servers.

I don't know whats use case, But if possible I would prefer having various webapps on single Java applicationserver.

初心未许 2024-09-23 17:08:15

如上所述,这是可能的,但这是配置管理的噩梦。

如果是为了兼容性测试,我会查看 EC2 或类似的基于时间的托管,并将 1 个应用程序服务器放入 1 个映像中,然后依次启动每个映像,并在测试完成后将其关闭。

由于不必编辑各种配置文件和调试奇怪的冲突,所花费的钱是原来的 10 倍。

As already mentioned above it is possible but it is a configuration management nightmare.

If it is for compatibility testing, I would look at EC2 or similar timebased hosting and , put an 1 app server in 1 image and spin up each image in turn and shut it down after the test is finished.

The money that costs is paid 10x by not having to edit all kind of configuration files and debugging weird conflicts.

不念旧人 2024-09-23 17:08:15

是的,这是可能的。

优点:

  • 您不需要额外的服务器来运行应用程序服务器,因此可以节省物理/虚拟机的费用。当您进行原型设计以及功能测试时,这会很有帮助,因为您可以在应用程序之间共享服务器。
  • 某些应用程序可能需要不兼容的应用程序服务器设置,因此您必须在不同的应用程序服务器中并排运行它们。
  • 一台应用程序服务器的停机不会影响其他应用程序服务器。

缺点

  • 您必须确保每个应用程序服务器获得足够的 CPU、内存等份额。
  • 您必须为每个应用程序服务器分配端口号。
  • 您会使每个环境的性能相互依赖。

所以,你所做的主要是为了实验/开发/测试。在生产环境中,并行运行应用程序服务器时必须更加小心。

Yes, it is possible.

Pros:

  • You don't need extra servers to run your appservers, so you save in physical/virtualmachines. This helps a lot when you're prototyping something, and also in functional testing, because you can share servers between applications.
  • Some applications may need incompatible appserver settings, so you must run them in different appservers, side by side.
  • Downtime of one appserver doesn't affect other appservers.

Cons:

  • You must make sure that every appserver gets enough share of CPU, memory, etc.
  • You must assign port numbers to each appserver
  • You are making each environment's performance dependent on each other's.

So, it is something that you do mainly to experiment/develop/test. In production environments you have to be much more careful when running appservers side by side..

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文