Elastic Beanstalk EC2中我的罐子在哪里 [英] Where is my jar in Elastic Beanstalk EC2

查看:82
本文介绍了Elastic Beanstalk EC2中我的罐子在哪里的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是Elastic Beanstalk的新手,但不是AWS的新手.我只是使用示例Java应用程序(Java SE)生成了新的EBS,并设法使其运行.由于我习惯于手动创建EC2实例,因此我登录到EC2,但找不到示例jar应用程序的部署位置.我的问题是:我的JAR部署在EC2中的哪个目录中?

I'm new to Elastic Beanstalk, but not to AWS. I just spawn new EBS with sample java app (Java SE) and managed to make it run. Since I'm used to create EC2 instance manually, I login into my EC2 but couldn't find where my sample jar app is deployed. My question is: where is my JAR deployed within EC2, in which directory?

最诚挚的问候,溴

推荐答案

这将取决于AMI,您需要检查文档以了解所使用的特定AMI.它会使用嵌入式servlet容器运行您的应用程序,或者可能已经安装了Jetty/Tomcat,然后您会在某个地方寻找战争.您还可以使用这种方法来检查当前Java进程正在使用哪个jar/war:

This will be AMI dependent you will need to check the document for the specific AMI you are using. It will either run your app with an embedded servlet container or it may have installed a Jetty/Tomcat and then you would be looking for a war somewhere. You could also use this approach of checking which jar/war the current Java process is using: https://askubuntu.com/questions/44043/how-can-i-find-out-which-jar-files-java-is-currently-running-and-their-pids

这篇关于Elastic Beanstalk EC2中我的罐子在哪里的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆