Access to 127.0.0.1 in win7 is unavailable, while localhost can be used as a solution.

Source: Internet
Author: User

 

A new test project is created today. After the service is started, the service cannot be accessed using http: // 127.0.0.1: 8080. A message is displayed, indicating that the link is rejected. Then I found that I could access it via http: // localhost: 8080. So I searched the internet and sorted the notes as follows:

 

1. ping localhost address to: 1

: 1 is the IPv6 format

 

It indicates that the machine parses the localhost into the IPv6 format. If the IPv4 address is used, the processing method is to detach the IPv6 driver or directly access it using http: // [: 1]: 8080.

 

Www.2cto.com

2. Delete Apr local files

If the tomcat localization file tcnative-1.dll exists, I use 1.1.17, with http: // [: 1]: 8080 can not be accessed, delete this file, start tomcat can be.

 

Supplement: I asked my colleague this question today. If I changed the hosts file, it would solve the problem that localhost cannot be accessed and 127.0.0.1 can be accessed. This problem is the opposite.

 

From xingyu Xiaoyi

Related Article

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.