Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where can I find the Tomcat 7 installation folder on Linux AMI in Elastic Beanstalk?

I have a elastic beanstalk linux-tomcat ami instance with the sample application installed and working off the public dns. I'm able to ssh into the instance but cannot find where tomcat 7 lives (ie. the conf directory to edit server.xml). I've tried this with a 64 and 32 bit ami. Any ideas on where I might find this? I looked under:

/etc /usr/share 

I did find a elasticbeanstalk-tomcat7-deployment file under tmp (was empty).

I did a:

sudo yum install tomcat7 

and the sample application is also being served up from :8080 and working on the public DNS. So I (think) have 2 tomcat servers running on the same beanstalk instance. In that case, I'm trying to find where the Tomcat 7 folders are (serving pages on port 80).

like image 616
MikeW Avatar asked Sep 05 '12 11:09

MikeW


People also ask

Where is the Tomcat installation directory on Linux?

The default directory for Tomcat files will be in /usr/local/tomcat9, you can view the configuration files inside the conf folder, the main page that you have seen above, when you open your website on the 8080 port is in /usr/local/tomcat9/webapps/ROOT/.

How do I know if Tomcat is installed on Linux?

A simple way to see if Tomcat is running is to check if there is a service listening on TCP port 8080 with the netstat command. This will, of course, only work if you are running Tomcat on the port you specify (its default port of 8080, for example) and not running any other service on that port.

What version of Tomcat do I have Amazon Linux?

One of the way is to execute version.sh or catalina.sh version , which are normally in the Tomcat 's bin folder. The thing is, there are no such files in the bin folder. Ok , Just try to install tomcat8 on Amazon Linux 2018.03 and found that tomcat script is /usr/sbin/tomcat8 .

Does AWS use Tomcat?

The AWS Elastic Beanstalk Tomcat platform is a set of platform versions for Java web applications that can run in a Tomcat web container. Tomcat runs behind an nginx proxy server. Each platform branch corresponds to a major version of Tomcat, like Java 8 with Tomcat 8.


2 Answers

Since late 2012, it is usually under /usr/share/tomcat7.

Prior to that, it was usually found under /opt/tomcat7.

like image 153
David Levesque Avatar answered Oct 23 '22 02:10

David Levesque


Not sure if this would be helpful. I am using a similar Amazon Linux AMI, which has tomcat7 living under /usr/share/tomcat7.

If tomcat is already running on your machine you can try:

ps -ef | grep tomcat 

or

ps -ef | grep java 

to check where it's running from.

like image 23
uchamp Avatar answered Oct 23 '22 04:10

uchamp