Where is my jar in Elastic Beanstalk EC2

两盒软妹~` 提交于 2021-01-28 09:19:32

问题


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?

Best regards, Bromo


回答1:


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



来源:https://stackoverflow.com/questions/49607347/where-is-my-jar-in-elastic-beanstalk-ec2

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!