LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Command to check the apache and tomcat versions (https://www.linuxquestions.org/questions/linux-newbie-8/command-to-check-the-apache-and-tomcat-versions-582469/)

chnlinux 09-05-2007 04:22 PM

Command to check the apache and tomcat versions
 
Hi ,

Which command i need to use to check the apache and tomcat versions running on the server

Thanks/Chnlinux

rch1231 09-05-2007 08:06 PM

For httpd use the following command:

httpd status

the version number will be part of the output.

For Tomcat:

You should be able to find this in the log called 'catalina.out'.
Alternatively, you can go right to the source; open
$TOMCAT_HOME/server/lib/catalina.jar in a tool capable of handling zip
or jar files, and read the file called
org/apache/catalina/util/ServerInfo.properties.

That last bit is not guaranteed to work across multiple versions,
though.

reddazz 09-06-2007 12:15 PM

To check the version of httpd, you can also run
Code:

#httpd -v


All times are GMT -5. The time now is 09:51 PM.