tomcat5.5部署一工程,localhost能访问,而用127.0.0.1和本地ip不能访问,报404。
解决方案 »
- struts2 <s:select>问题,action问题
- 为什么他们的输出结果是before==strArry[0]=Hello strarry[1]=Word after==strArry[0]=Word str
- 项目发布问题,急!!!!!
- js 写cookie jsp 为什么读不出(在线等)
- 各位高手前来-----指点在线客户系统实现的业务逻辑!!!谢谢!
- web service中为什么发布不出子类
- 哪里有weblogic5.1的下载,先谢谢了
- 其实有必要再开个j2ee版,大家讨论一下吧
- JAVAEE参数传递
- 使用FtpClient上传Spring MVC找不到该类
- ssh 执行action方法时出错
- 有关Spring context:component-scan 通配符匹配的问题
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# localhost name resolution is handled within DNS itself.
#127.0.0.1 localhost
#::1 localhost已经有了
你注释掉了啊 把#号去掉
结果:
Your server is up and running!怎么就是不能访问到工程
把这个删掉
再试
来自 ::1 的回复: 时间<1ms
来自 ::1 的回复: 时间<1ms
来自 ::1 的回复: 时间<1ms
来自 ::1 的回复: 时间<1ms::1 的 Ping 统计信息:
数据包: 已发送 = 4,已接收 = 4,丢失 = 0 (0% 丢
往返行程的估计时间(以毫秒为单位):
最短 = 0ms,最长 = 0ms,平均 = 0ms