• Post Reply Bookmark Topic Watch Topic
  • New Topic

what is the command to find out whether or not Tomcat is installed on your server  RSS feed

 
kay lin
Ranch Hand
Posts: 132
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All:
I am not very familiar with Unix OS, Let us say, after i logged in to my unix account,
what is the command i should use to find out whether or not TomCat is installed??

please let me know..

Many thanks..
 
Ernest Friedman-Hill
author and iconoclast
Sheriff
Posts: 24217
38
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, you might find out if it's running with something like

ps -ef | grep catalina

If you get back a line that says anything other than "grep catalina", then it's probably running.

If it's not running, then you might start searching around. Try

ls /usr/local

to see if there's an "apache-tomcat-XXX" directory in the standard install location. If you don't care about making the admin mad, a last resort might be

find / -name catalina.sh -print

which will give you the path to catalina.sh (in Tomcat's bin directory) if Tomcat is installed anywhere you're allowed to look. This command might run for a long time.
 
Mahesh Rana
Ranch Hand
Posts: 139
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check if any of the following gives you some valid path.

echo "$CATALINA_HOME"

echo "$TOMCAT_HOME"
[ February 20, 2006: Message edited by: Deep Narsay ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!