apache php日志 (os 64)指定的网络名不再可用,Apache日志报“....指定的网络名不再可用。 : AH00341: winnt_accept: Asynchronous Accep...

本人一直在使用Wampserver2.4-x64软件(Apache+php+Mysql)搭建邮件服务器,可是今天在远程访问Apache时页面总是访问延迟或者访问不到页面的情况,且在邮件系统服务器上访问页面都正常,但是同在一个局域网内的服务器也无法访问,至此可以判断可能是Apache的问题,随后到Apache的错误日志如下:

[Thu Nov 20 14:07:43.151780 2014]

[mpm_winnt:warn] [pid 8752:tid 1132] (OS 64)指定的网络名不再可用。:

AH00341: winnt_accept: Asynchronous AcceptEx failed.

[Thu Nov 20 14:07:43.152781 2014]

[mpm_winnt:warn] [pid 8752:tid 1132] (OS 64)指定的网络名不再可用。:

AH00341: winnt_accept: Asynchronous AcceptEx failed.

[Thu Nov 20 14:07:43.152781 2014]

[mpm_winnt:warn] [pid 8752:tid 1132] (OS 64)指定的网络名不再可用。:

AH00341: winnt_accept: Asynchronous AcceptEx failed.

[Thu Nov 20 14:07:43.152781 2014]

[mpm_winnt:warn] [pid 8752:tid 1132] (OS 64)指定的网络名不再可用。:

AH00341: winnt_accept: Asynchronous AcceptEx failed.

[Thu Nov 20 14:07:43.152781 2014]

[mpm_winnt:warn] [pid 8752:tid 1132] (OS 64)指定的网络名不再可用。:

AH00341: winnt_accept: Asynchronous AcceptEx failed.

在网上找各种资料,都是说在httpd.conf文件中添加Win32DisableAcceptEx标记:

ThreadsPerChild 150

MaxRequestsPerChild 10000

Win32DisableAcceptEx

配置之后问题依然未得到解决,最终查看Apache的手册(PS:查看最新的Apache2.4的手册),看到官方的如下解释:

The default values on Windows are:

AcceptFilter http data

AcceptFilter https data

Window's mpm_winnt interprets the

AcceptFilter to toggle the AcceptEx() API, and does not support http protocol

buffering. There are two values which utilize the Windows AcceptEx() API and

will recycle network sockets between connections. data waits until data has

been transmitted as documented above, and the initial data buffer and network

endpoint addresses are all retrieved from the single AcceptEx() invocation.

connect will use the AcceptEx() API, also retrieve the network endpoint addresses,

but like none the connect option does not wait for the initial data

transmission.

On Windows, none uses accept() rather than

AcceptEx() and will not recycle sockets between connections. This is useful for

network adapters with broken driver support, as well as some virtual network

providers such as vpn drivers, or spam, virus or spyware filters.

在配置文件中添加如下信息:

AcceptFilter http none

AcceptFilter https none

最终解决问题

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值