打印

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

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

今天发现网站出现500 Internal Server Error错误,重启后正常了:
打开 nginx_error.log看了下,发现提示错误:
复制内容到剪贴板
代码:
2017/11/22 10:43:17 [crit] 18717#0: accept4() failed (23: Too many open files in system)
ulimit -n看了下,发现是65535
复制内容到剪贴板
代码:
[root@izuf612578be1n8h6oby7lz conf]#  ulimit -n
65535
请问,军哥,这是咱回事?

TOP

今天又出现了nginx  500 Internal Server Error,军哥求解

TOP

不大清楚,你是什么程序?

TOP

回复 3# 的帖子

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

感觉过2天就要出现一次,重启下就好

TOP

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)

TOP

500建议还是开php错误日志看看

TOP