本文介绍了在EC2上运行Java EE应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

任何人都可以点我描述的步骤/资源:

  1. 如何在亚马逊EC2上部署Java EE应用程序
  2. (可能使用亚马逊EBS)保持更改应用服务器(部署新的应用程序)的实例重启后的元数据
解决方案

首先检查了这一点,如果你还没有通过它跑了: http://docs.aws.amazon.com/gettingstarted/latest /awsgsg-intro/intro.html
它会给你所有的它是如何工作的想法。

对于运行在EC2上的一个Java EE应用程序,你有两个选择 - 但他们一般归结为以下几招:

  1. 在启动实例
  2. 在安装Java EE应用服务器(Tomcat的/ GlassFish中/ websphere的/...)
  3. 在安装应用程序(战争/耳)到应用服务器

现在,你可以在上面捆绑到一个EBS的朋友,或者你可以写一个脚本(庆典/ SH / TCL),它适用于那些改变,当你的实例启动(我preFER)。该脚本可以修改被安装什么/开始/左右移动,而无需重新打包您的实例。

还有这里的一些重要的资源: http://developer.amazonwebservices.com/连接/ kbcategory.jspa?的categoryID = 100

希望有所帮助。

Can anyone point me to the steps/resources that describe:

  1. How to deploy a Java EE app on amazon-EC2
  2. Maintain changes to the meta-data of the app server (deploy new applications) after an instance reboot (probably using amazon-ebs)
解决方案

First check this out if you haven't already ran through it:http://docs.aws.amazon.com/gettingstarted/latest/awsgsg-intro/intro.html
it'll give you an idea of how it all works.

With regard to running a Java EE app on EC2, you have a couple of choices - but they generally come down to the following recipe:

  1. Start an instance
  2. Install a Java EE application server (tomcat/glassfish/websphere/...)
  3. Install your application (war/ear) into the application server

Now you can bundle the above into an ebs ami, or you can write a script (bash/sh/tcl) which applies those changes when your instance starts (which i prefer). The scripts allow you to modify what gets installed/started/moved around without having to rebundle your instance.

There's some great resources here: http://developer.amazonwebservices.com/connect/kbcategory.jspa?categoryID=100

Hope that helps.

这篇关于在EC2上运行Java EE应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-07 06:33