简体   繁体   English

在Amazon EC2中将Java war and Rails应用程序部署到Apache

[英]Deploying Java war and Rails app to Apache in Amazon EC2

is it possible to deploy java app and rails app to same EC2 sever. 是否可以将Java应用程序和Rails应用程序部署到同一EC2服务器。 I have a rails app that communicates a java app via AJAX so I need to deploy both to same server. 我有一个通过AJAX交流Java应用程序的Rails应用程序,因此我需要将两者都部署到同一服务器上。 Is there any way to do that or any resource to see how to? 有什么方法可以做到这一点,或者有什么资源可以看到如何做?

I guess it is possible by using apache2 with tomcat and passenger. 我猜想通过与Tomcat和Passenger一起使用apache2是可能的。 Is it true? 是真的吗

You can install two servers in diferent ports ie Apache HTTP on 80 and Apache Tomcat (or other) on 8080. Also you can use mod_jk if you want attend all your clients through Apache HTTP. 您可以在不同的端口上安装两台服务器,例如80上的Apache HTTP和8080上的Apache Tomcat(或其他)。如果要通过Apache HTTP参加所有客户端,也可以使用mod_jk。 MOD_JK enables to you to integrate Apache Tomcat and Apache HTTP. MOD_JK使您能够集成Apache Tomcat和Apache HTTP。

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

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