tomcat5.5部署一工程,localhost能访问,而用127.0.0.1和本地ip不能访问,报404。
解决方案 »
- Jenkins同时build数量的设定问题
- JSP+MYSQL 利用file和button提交*.sql文本的数据,添加到mysql
- 求高手指点如何学servlet!
- 大量数据写入到xml文件中?
- struts2.0 超链接 传值
- XQuery在查询XML文件时,能否去除重复记录?
- 时间控制
- Error creating bean with name 'sessionFactory' defined in class path resource
- Exception in thread "main" java.sql.SQLException
- 晕哦,在TOMCAT下能够运行的WAR包,发布到JBOSS上就有下面的错误,狂晕了:(请大大看看,帮个忙!在线等,谢谢!!
- 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