VPS侦探论坛

 找回密码
 注册
查看: 3180|回复: 5

nginx:accept(4) failed (23: Too many open files)

[复制链接]
发表于 2017-11-22 10:58:14 | 显示全部楼层 |阅读模式

今天发现网站出现500 Internal Server Error错误,重启后正常了:
打开 nginx_error.log看了下,发现提示错误:

  1. 2017/11/22 10:43:17 [crit] 18717#0: accept4() failed (23: Too many open files in system)
复制代码


ulimit -n看了下,发现是65535

  1. [root@izuf612578be1n8h6oby7lz conf]#  ulimit -n
  2. 65535
复制代码


请问,军哥,这是咱回事?
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2017-11-26 22:03:22 | 显示全部楼层


今天又出现了nginx  500 Internal Server Error,军哥求解
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2017-11-27 10:37:11 | 显示全部楼层

不大清楚,你是什么程序?
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2017-11-27 18:40:25 | 显示全部楼层

回复 3# 的帖子




modoer (也是网上开源程序),还有几个wordpress

感觉过2天就要出现一次,重启下就好
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2017-11-27 19:03:38 | 显示全部楼层

nginx_error.log 发现大量这个错误,刚刚挂掉了,发现27的号的错误日志反而没有


2017/11/26 22:03:57 [crit] 440#0: accept4() failed (23: Too many open files in system)
2017/11/26 22:03:58 [crit] 440#0: accept4() failed (23: Too many open files in system)
2017/11/26 22:03:58 [crit] 440#0: accept4() failed (23: Too many open files in system)
2017/11/26 22:03:59 [crit] 440#0: accept4() failed (23: Too many open files in system)
2017/11/26 22:03:59 [crit] 440#0: accept4() failed (23: Too many open files in system)
2017/11/26 22:04:00 [crit] 440#0: accept4() failed (23: Too many open files in system)
2017/11/26 22:04:00 [crit] 440#0: accept4() failed (23: Too many open files in system)
2017/11/26 22:04:01 [crit] 440#0: accept4() failed (23: Too many open files in system)
2017/11/26 22:04:01 [crit] 440#0: accept4() failed (23: Too many open files in system)
2017/11/26 22:04:02 [crit] 440#0: accept4() failed (23: Too many open files in system)
2017/11/26 22:04:02 [crit] 440#0: accept4() failed (23: Too many open files in system)
2017/11/26 22:04:03 [crit] 440#0: accept4() failed (23: Too many open files in system)
2017/11/26 22:04:03 [crit] 440#0: accept4() failed (23: Too many open files in system)
2017/11/26 22:04:04 [crit] 440#0: accept4() failed (23: Too many open files in system)
2017/11/26 22:04:04 [crit] 440#0: accept4() failed (23: Too many open files in system)
2017/11/26 22:04:05 [crit] 440#0: accept4() failed (23: Too many open files in system)

军哥运维代购:http://shop63846532.taobao.com/

发表于 2017-11-28 10:38:48 | 显示全部楼层

500建议还是开php错误日志看看
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-9-25 01:23 , Processed in 0.026844 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表