步骤1:检查system32下的drivers下的host文件,查找是否有 127.0.0.1 localhost 如果有则表示映射正常。
步骤2:查看ie的代理设置,工具->internet选项->连接->局域网设置,不要为本机设置代理。
步骤3:在cmd下ping localhost看其返回结果,如果返回如下结果:
>ping localhost
reply from ::1: times<1ms
reply from ::1: times<1ms
reply from ::1: times<1ms
这是因为安装了ipv6,把ipv6卸载就好了,在cmd下输入:ipv6 uninstall
访问本机tomcat,用http://localhost:8081不行,而用http://127.0.0.1:8081就可以的解决办法?
最新推荐文章于 2025-03-15 16:17:06 发布