Am 12.07.20 um 10:14 schrieb Christoph Kukulies: > Strange. I’m running an apache2 and a tomcat8 (AFAIK) on my server. > > > When I open a browser on my server remotely and enter http://localhost:8080/ > <http://localhost:8080/> I’m getting the tomcat > congratulations page saying: > > Apache Tomcat/9.0.12 > > How can I determine which tomcat I’m running? Could it be that I once had > installed Tomcat 9 and it is still installed as a service? > System is Ubuntu 18.04.4.
I would first have a look at which process is running on port 8080 and which processes are likely to be tomcats: $ ss -pln | grep 8080 tcp LISTEN 0 100 *:8080 *:* users:(("java",pid=460709,fd=40)) and $ ps aux | grep catalina felix 460709 3.1 0.8 8353292 137908 pts/0 Sl 11:13 0:05 /usr/lib/jvm/jdk-14.0.1+7/bin/java -Djava.util.logging.config.file=/home/felix/Developer/tomcat/output/build/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djdk.tls.ephemeralDHKeySize=2048 -Djava.protocol.handler.pkgs=org.apache.catalina.webresources -Dorg.apache.catalina.security.SecurityListener.UMASK=0027 -Dignore.endorsed.dirs= -classpath /home/felix/Developer/tomcat/output/build/bin/bootstrap.jar:/home/felix/Developer/tomcat/output/build/bin/tomcat-juli.jar -Dcatalina.base=/home/felix/Developer/tomcat/output/build -Dcatalina.home=/home/felix/Developer/tomcat/output/build -Djava.io.tmpdir=/home/felix/Developer/tomcat/output/build/temp org.apache.catalina.startup.Bootstrap start On my machine, there is one process listening on port 8080 (pid=460709) and one process likely a tomcat (which has surprisingly the same pid :) ) After that, I would have look into the directories listed as catalina.base and catalina.home (which in this example are identical) and try to decide, whether they were part of a system package installation or a manual installation. If I still don't know what to do next, I would come back to the mailing list with the information I found out by this. Maybe enhanced with the output of (dpkg -l | grep -i tomcat) Felix > > > Christoph > > > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org