如何在亚马逊云中部署Java EE应用程序?
事情是这样的:我需要从下个月开始将某个 Java EE Web 应用程序部署到 Amazon EC2(我需要首先设置)(使用 http://aws.amazon.com/free/faqs/ AWS 免费套餐使用 - 希望它支持 Tomcat + MySQL/PostgreSQL)。
问题:我从未部署过 Java EE 应用程序(甚至不是专用托管上的普通应用程序),也没有设置过 Amazon EC2 环境。
是否有任何白痴证明最好的教程/操作方法/从一开始(注册亚马逊)到最后(当您的应用程序全部启动并运行时)的教程/操作方法/其他内容?
我确实找到了一些关于如何设置 Amazon EC2 实例、如何正常部署 Java EE 应用程序的教程,但我正在寻找的是一个将所有内容组合在一起的教程。
Here's the thing: I need to take a certain Java EE web app and deploy it to Amazon EC2 (which I will need to setup first) starting next month (using the http://aws.amazon.com/free/faqs/ AWS Free Tier Usage - hope it supports Tomcat + MySQL/PostgreSQL).
The problem: I have never ever deployed a Java EE app (not even a normal one on a dedicated hosting) nor have I setup an Amazon EC2 enviorment.
Are there any, idiot proof preferably, tutorials/how-to's/whatever on doing it from the very beginning (signing up to Amazon) till the very end (when your app is all up and running)?
I did find some tutorials on how to setup an Amazon EC2 instance, how to normally deploy a Java EE app but what I'm looking for is a single tutorial putting it all together.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
Boxfuse 现在支持使用 Tomcat、TomEE Web Profile 或 TomEE Plus 通过单个命令将 Java EE 应用程序部署到 AWS
这将创建一个映像、配置所有必要的 AWS 基础设施(AMI、安全组、自动扩展组、启动配置、ELB、弹性 IP 等)并启动实例。它支持使用弹性 IP 和 ELB 进行蓝/绿零停机更新。
您可以在此处找到教程:https://boxfuse.com/blog/javaee-aws
< em>免责声明:我是 Boxfuse 的创始人兼首席执行官
Boxfuse now supports deploying Java EE applications using either Tomcat, TomEE Web Profile or TomEE Plus to AWS with a single command
This will create an image, provision all necessary AWS infrastructure (AMIs, security groups, auto-scaling groups, launch configurations, ELBs, Elastic IPs, ...) and launch the instances. It supports blue/green zero downtime updates with Elastic IPs and ELBs.
You can find a tutorial here: https://boxfuse.com/blog/javaee-aws
Disclaimer: I am the founder and CEO of Boxfuse
从 Ubuntu AMI 开始。然后安装tomcat。现在将 J2EE 应用程序的 WAR 文件放在 tomcat 可以看到的位置。您可以使用 AWS 控制台 启动/停止您的计算机,配置允许您访问端口的防火墙规则80等。不会有一步一步的指南告诉你到底要做什么,欢迎成为一名程序员。
Start with an Ubuntu AMI. Then install tomcat. Now put the WAR file of your J2EE app where tomcat can see it. You can use the AWS console to start/stop your machines, configure firewall rules that allow you to access port 80, etc. There won't be a step by step guide telling you exactly what to do, welcome to being a programmer.
一旦我们的实例(如 Ubuntu)运行 http://youtu.be/hJRSti6DsJg 然后,安装 Glassfish ( Java EE 服务器)并将其配置为与 Java EE 一起使用。它更多地取决于实例本身(Ubuntu)而不是 EC2 Amazon...这里有一个不错的视频(如何在 Ubuntu + Netbeans 配置中安装 Glashfish)http://youtu.be/CKuoDm6bqRM
注意:
更新
您可以尝试将 Amazon Beanstalk(部署和管理)与 Netbeans 集成(不使用 Glashfish?)http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/GettingStarted.html
SSH 到 Elastic Beanstalk 实例
http://aws.amazon.com/ java/ (Amazon + Java)
Once we have the instance (like Ubuntu) running http://youtu.be/hJRSti6DsJg then, installs Glassfish (Java EE server) and configure it to work with Java EE. It depends more of the instance itself (Ubuntu) than EC2 Amazon... here a nice video (how to install Glashfish in Ubuntu + Netbeans config) http://youtu.be/CKuoDm6bqRM
Note:
Update
You can try Amazon Beanstalk (Deployment & Management) integrated with Netbeans (without Glashfish?) http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/GettingStarted.html
SSH to Elastic Beanstalk instance
http://aws.amazon.com/java/ (Amazon + Java)