Tomcat can start normally, but cannot access http://localhost:8080

Source: Internet
Author: User

Recently encountered a problem, downloaded a tomcat7.0.23 version of the software (not the official website to download), the environment variable settings are correct but are not able to access http:localhost:8080. Here are my solutions:

(1): Determine my environment variable settings are correct (I set the following):

System Variable Configuration: (To resolve Tomcat startup Startup.bat when it flashed)

Java_home

C:\Program Files (x86) \java\jdk1.7.0_25
==================================
CLASSPATH

.; %java_home%\lib;%java_home%\lib\tools.jar
==================================
Path
Join:
C:\Program Files (x86) \java\jdk1.7.0_25\bin;


(2) Check to see if my port number is correct:

C:\Program files\tomcat\conf------->server.xml---------> with Notepad to find: <connector port= "8080" protocol= "http/" 1.1 connectiontimeout= "20000" redirectport= "8443"/>

Confirm Port Number

(3) The existence of index.jsp in the directory of C:\Program Files\tomcat\webapps\root

You first have to make sure that the above three settings are correct or exist


Or not, then you have to consider the Tomcat official online to download the version of your (my MyEclipse max support 7.x version, all I downloaded is 7.0.69), do not go to other places to download, after all, the official website is authoritative, formal. Also can avoid version incompatibility problem, remember to download the latest version yo ...

"Can download a Firefox browser, you can add a translation of Plug-ins, then encounter English Web page he can give you translation, so that we browse the"


There is also a situation is to use 127.0.0.1:8080 can open, and with localhost:8080 can not open, may be the Hosts file problems, you can pass the machine C:\WINDOWS\system32\drivers\etc\ Under the Hosts file, you can use Notepad to open the hosts view, this line of # 127.0.0.1 localhost before the # comments removed (note # for the annotation symbol). In order to solve the problem









Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.