TA的每日心情 | 开心 4 天前 |
---|
签到天数: 82 天 [LV.6]常住居民II
管理员
- 积分
- 39105
|
最近春哥的以为网友朋友反映,他的论坛非常的卡,问我具体原因。今天春哥就整理一下:win2008服务器安装discuz运行非常卡的原因及解决办法
原因是PHP5.3以上支持IPv6但服务器并未使用IPv6但当访问的时候连接MySQL的地址为localhost他会先用IPv6连接,但又没有IPv6所以要等到IPv6失败了再转到IPv4这样绕了一圈速度当然慢了。网上有人说禁用IPv6试了没有任何作用,然后使用了微软官方的IPv6禁用工具依然如此,下面春哥贴出正确的解决方法:
首先打开C:\Windows\System32\drivers\et\hosts文件
目录下的host文件
- # 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
复制代码 解决方案:
|
|