nginx – pread()只读yyyy的xxxx

前端之家收集整理的这篇文章主要介绍了nginx – pread()只读yyyy的xxxx前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

有时,Nginx不会将任何数据发送回浏览器(Chrome中的ERR_EMPTY_RESPONSE).

检查服务器error.log后,我发现这些奇怪的消息:

2013/10/20 23:57:40 [alert] 29146#0: *35 pread() read only 4653 of 4656 from "~/htdocs/index.html" while sending response to client,client: 127.0.0.1,server: localhost,request: "GET / HTTP/1.1",host: "localhost"
2013/10/20 23:57:45 [alert] 29146#0: *36 pread() read only 4653 of 4656 from "~/htdocs/index.html" while sending response to client,host: "localhost"
2013/10/20 23:58:18 [alert] 29146#0: *38 pread() read only 4650 of 4653 from "~/htdocs/index.html" while sending response to client,host: "localhost"
2013/10/20 23:58:18 [alert] 29146#0: *39 pread() read only 4650 of 4653 from "~/htdocs/index.html" while sending response to client,host: "localhost"
2013/10/20 23:58:19 [alert] 29146#0: *40 pread() read only 4650 of 4653 from "~/htdocs/index.html" while sending response to client,host: "localhost"
2013/10/21 00:02:21 [alert] 29146#0: *41 pread() read only 4629 of 4641 from "~/htdocs/index.html" while sending response to client,host: "localhost"
2013/10/21 00:02:21 [alert] 29146#0: *42 pread() read only 4629 of 4641 from "~/htdocs/index.html" while sending response to client,host: "localhost"
2013/10/21 00:02:23 [alert] 29146#0: *43 pread() read only 4629 of 4641 from "~/htdocs/index.html" while sending response to client,host: "localhost"
2013/10/21 00:02:31 [alert] 29146#0: *44 pread() read only 4629 of 4641 from "~/htdocs/index.html" while sending response to client,host: "localhost"
2013/10/21 00:02:46 [alert] 29146#0: *45 pread() read only 4629 of 4641 from "~/htdocs/index.html" while sending response to client,host: "localhost"

有谁知道为什么会这样?过了一会儿,一切都得到了正确的服务.

最佳答案
我发现this russian forum thread说它与open_file_cache指令有关.

有道理,因为我正在使用Sublime Text和it doesn’t do atomic file saves.

原文链接:https://www.f2er.com/nginx/435217.html

猜你在找的Nginx相关文章