By Jun. net
Problem:
Tomcat is installed with yum on centos 5.5 and started properly. However, the webpage accessing port 8080 is blank.
View the linux version
[Root @ inside ~] # Lsb_release-
LSB Version: core-3.1-amd64: core-3.1-ia32: core-3.1-noarch: graphics-3.1-amd64: graphics-3.1-ia32: graphics-3.1-noarch:
Distributor ID: CentOS
Description: CentOS release 5.5 (Final)
Release: 5.5
Codename: Final
Http://www.bkjia.com/ OS /201110/107901.html
View Tomcat installation directory
First, check that the software whose name contains tomcat is installed with yum.
[Root @ inside ~] # Rpm-qa | grep tomcat
Tomcat5-servlet-2.4-api-5.5.23-0jpp.19.el5_6
Tomcat5-jasper-5.5.23-0jpp.19.el5_6
Tomcat5-jsp-2.0-api-5.5.23-0jpp.19.el5_6
Tomcat5-server-lib-5.5.23-0jpp.19.el5_6
Tomcat5-common-lib-5.5.23-0jpp.19.el5_6
Tomcat5-5.5.23-0jpp.19.el5_6
View the installation directory
[Root @ inside ~] # Rpm-ql tomcat5
/Etc/logrotate. d/tomcat5
/Etc/rc. d/init. d/tomcat5
/Etc/sysconfig/tomcat5
/Etc/tomcat5
/Etc/tomcat5/Catalina
/Etc/tomcat5/Catalina/localhost
/Etc/tomcat5/catalina. policy
From the above, we can analyze the configuration directory/etc/tomcat5 of tomcat5.
View tomcat 5 Configuration:
[Root @ inside bin] # tomcat5
Found JAVA_HOME:/usr/lib/java
Please complete your/etc/tomcat5/tomcat5.conf so we won't have to look for it next time
Using CATALINA_BASE:/usr
Using CATALINA_HOME:/usr
Using CATALINA_TMPDIR:/usr/temp
Using JRE_HOME:
Usage: dtomcat5 (commands... )
Commands:
Debug Start Catalina in a debugger
Debug-security Debug Catalina with a security manager
Jpda start Start Catalina under JPDA debugger
Run Start Catalina in the current window
Run-security Start in the current window with security manager
Start Start Catalina in a separate window
Start-security Start in a separate window with security manager
Stop Stop Catalina
Stop-force Stop Catalina (followed by kill-KILL)
Version What version of tomcat are you running?
Http://www.bkjia.com/ OS /201110/107902.html
Start Tomcat
[Root @ inside ~] # Service tomcat5 restart
Stopping tomcat5: [OK]
Starting tomcat5: [OK]
As you can see above, the startup is normal
Check port opening status
Netstat-nat
Port 8080 is in the listening status.
Install Tomcat5.5 in CentOS (with JDK 1.6)
Http://www.bkjia.com/ OS /201110/107903.html
After analyzing the problem for a long time, we failed to find the cause and removed the reinstallation.
Http://confluence.atlassian.com/display/JIRA041/Installing+JIRA+on+Tomcat+5.5
References:
Install JDK and Tomcat: http://www.bkjia.com/ OS /201110/107904.html under CentOS5.5
CentOS yum install Apache + PHP + MySQL + Tomcat
Http://www.bkjia.com/ OS /201110/107905.html