Where can I find the Tomcat 7 installation folder on Linux AMI in Elastic Beanstalk?
Since late 2012, it is usually under /usr/share/tomcat7
.
Prior to that, it was usually found under /opt/tomcat7
.
Where are Tomcat application log files stored in Elastic Beanstalk?
Something seems to have changed a bit on this, as I have a new Elastic Beanstalk application where the logs are located in:
/var/log/tomcat7/
Note that the easiest way to view stuff in here is to sudo su
first, as this directory is owned by root. Whereas, I have an older instance where the logs are in:
/opt/tomcat7/logs/
I'm not sure why there is a disparity in this, as both applications use the tomcat7 container, but this seems to be the state of things to date.
Access Tomcat root application under different path (on AWS/Elastic Beanstalk)
Although we can now access our app under the desired path, the application is still deployed twice by Tomcat. While this is a minor nuisance for us, I can imagine this being a problem on more resource-tight machines. On the plus side, we can now start migrating our apps to no longer use the resource path when accessing the API, which leads to cleaner and shorter API URLs.
Customizing an Elastic Beanstalk AMI
That answer just means "Don't start a beanstalk application and cut an AMI directly from one of those instances. Instead, launch an instance based on the beanstalk AMIs (which are available in the public AMI listing)." I.e., use one of these; note there are 84 of them:
Cut your own private AMI when you're done configuring that instance, and specify it in your beanstalk environment.
Related Topics
Getting Memory Map of Every Device in Linux
How to Chmod 0777 a File and Commit as Is to Git on Windows
Does Kernel's Panic() Function Completely Freezes Every Other Process
Does Linux Malloc() Behave Differently on Arm Vs X86
How to Create a Statically Linked Position Independent Executable Elf in Linux
How to Expand Relative Paths in Shell Script
How to Gently Kill Firefox Process on Linux/Os X
How to Find Files That Only Have Certain Permission for Owner
Monitoring File and Directory Access on Linux
Docker: How to Extract The Docker Image into Local System
Ansible Ad-Hoc Command with Direct Host Specified - No Hosts Matched