关于linux有时无法访问一些网站的解决方法
现象:
curl -I -v http://www.5dsun.cn/ 无法达到,在Centos4上没问题
如果有Linux做办公环境Firefox无法打开有的网站
受影响:
内核在2.6.17以上
解决办法:
sysctl -w net.ipv4.tcp_window_scaling=0
随后也可以添加到/etc/sysctl.conf
这种现象大多是服务器为Windows服务器的
参考:
Linux creator Linus Torvalds suggested, "well, arguably, we shouldn't necessarily have defaults that use window scaling, or we should have ways to recognize automatically when it doesn't work (which may not be possible). It's not like there aren't broken boxes out there, and it might be better to make the default buffer sizes just be low enough that window scaling simply isn't an issue."
最近评论