网络环境异常处理
2014-08-27 14:23
645 查看
班上很多小伙伴经常向我吐槽自己的电脑打开网页的速度特慢,都慢成一种速度了,针对这种情况,估计应该是网络环境出现异常,解决办法如下:
打开C:\Windows\System32\drivers\etc 下的hosts文件,如果里面不是这样的:
#Copyright (c) 1993-2009 Microsoft Corp.
#
#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
说明你的文件已被修改,请全部删除后,把上面那段码复制粘贴进去,然后重启一下本地连接。
注:win7的本地连接在网络和共享中心那点击更改适配器设置。
如果此方法不成,那么可以试试另一个:
windows+R 输入cmd
在cmd.exe中输入:ipconfig/flushdns
如果还不成,那么就只有找大神或者重装系统了
打开C:\Windows\System32\drivers\etc 下的hosts文件,如果里面不是这样的:
#Copyright (c) 1993-2009 Microsoft Corp.
#
#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
说明你的文件已被修改,请全部删除后,把上面那段码复制粘贴进去,然后重启一下本地连接。
注:win7的本地连接在网络和共享中心那点击更改适配器设置。
如果此方法不成,那么可以试试另一个:
windows+R 输入cmd
在cmd.exe中输入:ipconfig/flushdns
如果还不成,那么就只有找大神或者重装系统了
相关文章推荐
- 特殊的网络环境下的故障处理
- 在C#中利用Keep-Alive处理Socket网络异常断开的方法
- ubuntu下android开发环境搭建(及错误异常处理)
- C# 网络连接中异常断线的处理:ReceiveTimeout, SendTimeout 及 KeepAliveValues(设置心跳)
- 在C#中利用Keep-Alive处理Socket网络异常断开的方法
- 创新谈-如何处理DataGuard环境中万一网络失败将导致的Primary库短时间内无法正常工作的问题-张乐奕
- UNIX中各种网络异常情况下的处理
- 更换网络环境的批处理
- <转载>在C#中利用Keep-Alive处理Socket网络异常断开的方法
- 在C#中利用Keep-Alive处理Socket网络异常断开的方法
- 在C#中利用Keep-Alive处理Socket网络异常断开的方法
- 在C#中利用Keep-Alive处理Socket网络异常断开的方法
- ubuntu下android开发环境搭建(及错误异常处理)
- .NET Socket开发(3) 利用Keep-Alive处理Socket网络异常断开的方法
- 在C#中利用Keep-Alive处理Socket网络异常断开的方法
- 在C#中利用Keep-Alive处理Socket网络异常断开的方法
- 在C#中利用Keep-Alive处理Socket网络异常断开的方法
- 在C#中利用Keep-Alive处理Socket网络异常断开的方法
- 在C#中利用Keep-Alive处理Socket网络异常断开的方法
- 在C#中利用Keep-Alive处理Socket网络异常断开的方法