Posts Tagged ‘错误’

[Wed Dec 09 20:08:30 2009] [error] (OS 10038)在一个非套接字上尝试了一个操作。 : Child 7852: Encountered too many errors accepting client connections. Possible causes: dynamic address renewal, or incompatible VPN or firewall software. Try using the Win32DisableAcceptEx directive.

来源

今日电脑上的APACHE启动后CPU占用率一直高居100%, PHP程序也无法执行了。
查看错误日志里面记录了很多:

[error] (OS 10038)在一个非套接字上尝试了一个操作。 : Child 3356: Encountered too many errors accepting client connections. Possible causes: dynamic address renewal, or incompatible VPN or firewall software. Try using the Win32DisableAcceptEx directive.

去到网上搜索,找到下面的解决方法:

编辑httpd.conf

Win32DisableAcceptEx ##加入这行
ThreadsPerChild 250
MaxRequestsPerChild 0

重启apache就解决了。

修改后还是不行,任然有错误记录,CPU占用率是降低了,但是还是没有恢复到原来的状态.logs里面还是一直在记录下面的错误报告。

[Mon Dec 24 16:48:06 2007] [error] (OS 10038)在一个非套接字上尝试了一个操作。 : Too many errors in select loop. Child process exiting.
[Mon Dec 24 16:48:06 2007] [notice] Child 1916: Exit event signaled. Child process is ending.
[Mon Dec 24 16:48:07 2007] [notice] Child 1916: Released the start mutex
[Mon Dec 24 16:48:07 2007] [notice] Child 1916: Waiting for 250 worker threads to exit.
[Mon Dec 24 16:48:07 2007] [notice] Child 1916: All worker threads have exited.
[Mon Dec 24 16:48:07 2007] [notice] Child 1916: Child process is exiting
[Mon Dec 24 16:48:07 2007] [notice] Parent: child process exited with status 0 — Restarting.
[Mon Dec 24 16:48:07 2007] [notice] Apache/2.0.55 (Win32) configured — resuming normal operations
[Mon Dec 24 16:48:07 2007] [notice] Server built: Oct 9 2005 19:16:56
[Mon Dec 24 16:48:07 2007] [notice] Parent: Created child process 3028
[Mon Dec 24 16:48:07 2007] [notice] Disabled use of AcceptEx() WinSock2 API
[Mon Dec 24 16:48:07 2007] [notice] Child 3028: Child process is running
[Mon Dec 24 16:48:07 2007] [notice] Child 3028: Acquired the start mutex.
[Mon Dec 24 16:48:07 2007] [notice] Child 3028: Starting 250 worker threads.
[Mon Dec 24 16:48:08 2007] [notice] Child 3028: Listening on port 80.

最后搜索到与winsock有关,有网友也出现了这个问题,他认为是金山毒霸或者升级精灵修改了WINSOCK导致的。由于我电脑上也安装了金山毒霸,而且最近几天也升级过了,应该是同样的问题。于是搜索到恢复Winsock的方法:

netsh winsock reset

使用此条命令恢复后,重启电脑,这下Apache恢复当原先的良好状态了。

希望遇见这样问题的朋友们能得到帮助~~!

————–

我可以肯定又是dr.com在篡改winsock。

 

Apache:setup_inherited_listeners(), WSASocket failed to open the inherited socket

几天捣腾Win平台的Apache,启动了也没有看到httpd.exe进程,服务也无法开启,查看logs目录下的error.log内容:

“setup_inherited_listeners(), WSASocket failed to open the inherited socket”

解决方法:
“网络连接”–>”tcp/ip属性”–> “高级”–>”wins”—>去掉”LMHOSTS查询”的勾选。

 

“ERROR LOADING OPERATING SYSTEM” [2007年02月04日]

不是上次我们刚刚说到了我使用网络安装的方式`安装完成后。计算机重新启动后出现了error loading operating system的提示。开始的时候我就了不知道怎么搞的应该说安装是没有问题的就是安装的媒介的完整性是好的不相信我也可以使用md5crypt来严整啊  然后就开始了搜索 发现了一些有价值的东西:

Re: Error loading operating System.

Dr. S.K. Singh (sks@cirg.up.nic.in)
Tue, 4 Aug 1998 15:47:55 +0530 (IST)


Today I repartitioned hdd with 1-500 cyl for Win-95 and 501 to 4340 for
Linux native and no swap. but problem is still there. Does RH not boot
without lilo when the linux partiotion is made an active one?. I also
tried fdik/mbr from dos prompt but without improvement.
With Kind Regards.

Sincerely Yours

Dr.S.K. Singh,

On Mon, 3 Aug 1998, Jacob V T wrote:

>
> On Mon, 3 Aug 1998, Dr. S.K. Singh wrote:
>
> > Hi all,
> > I have installed RH 5.0 using a CD in a new Pentium II- 266 Mhz, 64 MB
> > RAM and 4 GB SCSI HDD. The disk was partitioned ito sda1-100Mb Linux swap,
> > sda2-500Mb DOS and rest as sda3 for Linux native. After successful
> > installation when machine reboots it says “Eorror Loading Operating
> > System”. I installed twice using Lilo in MBR and in dev sda3. First it
> > gave 02 02…..
>
> When trying to install lilo on root and if lilo was previously
> installed on MBR, you should first remove liloboot code from MBR with the
> DOS command FDISK /MBR
> If again the boot code is beyond 1023 cylinders, the system BIOS can’t
> pick up the boot code. For that
>
> Option1: Make the linux native partition the first partition.
>
> Option2: Use LOADLIN.EXE to boot linux from DOS partition and use CHOICE
> command to switch between the OS.
>
> Regards,
> Jacob V T.
>

-
To unsubscribe from this list: send the line “unsubscribe linux-net” in
the body of a message to majordomo@vger.rutgers.edu
这个是我从一个新闻组上找到的主要的意思是说安装linux的时候没有正确配置好grub

所以建议使用lilo 。然后就是我们的mbr出了问题 使用 fdisk /mbr可以把main boot record的内容清楚我就这样的做了然后重新启动计算机出现了新的提示“missing operating system” 看来现在是bios都找不到系统了  怎么办呢我想啊想拿出了我的fc5的rescue cd 启动到 rescue mode 使用grub-install /dev/hda在我的硬盘上安装grub 。这样开机的时候就没有提示了进了grub了 就开始使用kernel initrd

但是我发现所有的分区都没有了 除了(hd0,0) are ext2fs (hd0,1) is unkown other are invalid ..我开始怀疑我没有分好区了。结果fdisk -l 发现

/dev/hda is linux but /dev/hda is linux lvm..我也不知道lvm是什么【update20081108:Local Volume Manager本地卷管理器】我就知道装错了 怎么搞 重新安装撒

现在开始了我的重新的安装 跟目录是/dev/hda

free space 5729M 开始的时候他是自动分区的现在我把全部的分区都delete 然后我自己来分区分得也很简单

swap 300mb   hda2

/boot 100mb  hda1

/     left   hda3

然后安装grub 设置grub密码 安装在mbr上 设置网络地址 时区 root密码好了

然后加载安装信息。。。。。。。。。

然后选择要安装的包customize software selection

我安装了administration tools /editor/graphic /x-window

就是这些就够了。然后就是等了 看看有没有成功

。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。现在的时间是2007年2月5日星期一18:39:48

经过漫长的等待后结果出来了:成功了!

20081108评论:现在才知道那个时候玩的是两台机子,二本本子装,这边P4的机子就在sinablog上记录,全文不知所云。