如题,用127.0.0.1和ip可以正常访问tomcat、mysql,但是localhost却怎么也访问不了,网上说的办法我都试了,都解决不了问题,盼望高手指点~
解决方案 »
- 刚进公司的JavaEE程序员都干些什么啊?
- ssh的小demo 里面的hibernate怎么连上数据库啊
- <c:forEach>中的变量范围问题?
- 这段代码 运行的时候 在命令行怎么输入
- 写javascript怎么创建xml,怎么读xml文件?请老大们帮忙啊!
- 哪位dx在eclipse中使用过hibernate tools
- jdom包里面都是什么东西?都有用吗?
- struts数据库连接问题?
- XML xerces c 中如何将汉字子串转换为XMLCh字符串?
- 我怎么在sun的网站上找不到jax*系列包下载???????
- struts2 整合 spring 时遇到的问题
- hibernate Hql查询为空,可是数据表里有值
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
#
# For example:
#
# 112.54.94.97 rhino.acme.com # source server
# 18.25.63.10 x.ss.com # x client host127.0.0.1 localhost
=========================================================================
看看WINDOWS\system32\drivers\etc下的hosts中是不是有上面标红的那一行.
写127.0.0.1 localhost
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
#
# For example:
#
# 102.54.94.97 rhino.acme.com # source server
# 38.25.63.10 x.acme.com # x client host
127.0.0.1 localhost