2011-09-18 39 views
0

我已經有很多那些在我的lighttpd的日誌文件的最後幾個星期:「插座功能已禁用,連接限制達到」與lighttpd的

2011-09-18 19:30:17: (server.c.1405) [note] sockets disabled, connection limit reached 
2011-09-18 19:31:15: (server.c.1359) [note] sockets enabled again 
2011-09-18 19:31:15: (server.c.1405) [note] sockets disabled, connection limit reached 
2011-09-18 19:32:18: (server.c.1359) [note] sockets enabled again 
2011-09-18 19:32:18: (server.c.1405) [note] sockets disabled, connection limit reached 
2011-09-18 19:33:21: (server.c.1359) [note] sockets enabled again 
2011-09-18 19:33:21: (server.c.1405) [note] sockets disabled, connection limit reached 

即使我有我的配置文件: server.max-fds = 0

我不知道我能對這些錯誤做什麼,它會殺死我的網站。 這裏有什麼專家?

+0

您應該接受答案。 –

回答

3
server.max-fds = 0 

只有在lighttpd作爲root啓動時纔有效。

你是否以root身份運行lighttpd

1

server.max-connections = NUMBER

如果你使用PHP,設置server.max-fdsserver.max-connections的兩倍。