Run Java EE app on EC2

前端 未结 5 1299
猫巷女王i
猫巷女王i 2021-01-31 19:59

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 serve
5条回答
  •  没有蜡笔的小新
    2021-01-31 20:23

    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.

提交回复
热议问题