问题
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