Find the answer to your Linux question:
Results 1 to 4 of 4
Hi I m new to Linux I need to find out whether Apache-tomcat is installed or not in a Linux system . And also want know where Apache-tomcat is installed. ...
  1. #1
    Just Joined!
    Join Date
    May 2009
    Posts
    2

    Check whether Tomcat is installed or not in Linux

    Hi
    I m new to Linux
    I need to find out whether Apache-tomcat is installed or not in a Linux system .
    And also want know where Apache-tomcat is installed.

    Thanks in advance

    Regard
    Ramesh
    Last edited by rameshkarthikeyan; 05-11-2009 at 12:50 PM. Reason: Modification

  2. #2
    Linux Guru Lakshmipathi's Avatar
    Join Date
    Sep 2006
    Location
    3rd rock from sun - Often seen near moon
    Posts
    1,568

    Smile

    run the following command it will give you installation path
    whereis httpd
    if it's there then you can start apache server using
    /etc/init.d/httpd start
    then check your localhost using browser..for apache welcome page.
    - Lakshmipathi.G
    -------------------
    FOSS India Award winning ext3fs Undelete tool and tutorials www.giis.co.in
    First they criticize you,Then they laugh at you,Then they fight with you,Then you win. - M.K.Gandhi
    -------------------

  3. #3
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
    Posts
    8,974
    Whether: sudo yum list | grep -i tomcat
    Where: /usr/share/tomcat5
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  4. #4
    Just Joined!
    Join Date
    May 2009
    Posts
    2
    Thank you Lakshmipathi and Rubberman

    This is worked but it is not usefull for me

    i have to check whether tomcat is installed or not to build a rpm(Requires section of .spec file). so the needed command will work like if condition.
    Example:
    Requires /usr/bin/expect
    in this rpm if expect is installed then we can installed the rpm.If it is not installed we cannot install the rpm till we install the expect package .

    Like that i want to install a rpm if tomcat is installed . let me out for doing this [command also need for finding installed path of tomcat ].




    Thanks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...