我可以在一台服务器上拥有多个 Java 应用程序服务器吗?
是否可以在一台服务器或 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
如果您想尝试所有这些,这是可能的。您只需为每个服务选择不同的端口即可。
有真正的用例吗?您可能有一个应用程序绑定到您的应用程序服务器,并且您可能希望运行不同的应用程序。
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.
是的。通常的问题是给定端口只能由单个进程使用。
因此,您不能在端口 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.
这是可能的。您需要注意这些服务器使用的端口。
此外,您还需要检查服务器上有哪些资源(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.
如上所述,这是可能的,但这是配置管理的噩梦。
如果是为了兼容性测试,我会查看 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.
是的,这是可能的。
优点:
缺点:
所以,你所做的主要是为了实验/开发/测试。在生产环境中,并行运行应用程序服务器时必须更加小心。
Yes, it is possible.
Pros:
Cons:
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..