From 74cf2ce084a38031ea592903176e5374ecd3f38d Mon Sep 17 00:00:00 2001 From: REN Xiaolei Date: Thu, 14 Nov 2019 11:49:58 +0800 Subject: [PATCH] Update faq.rst and fix technical mistake on ulimit --- docs/source/faq.rst | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/docs/source/faq.rst b/docs/source/faq.rst index bd8f1d18..6531b99b 100644 --- a/docs/source/faq.rst +++ b/docs/source/faq.rst @@ -128,10 +128,9 @@ How can I increase the maximum number of file descriptors? One of the first settings that usually needs to be bumped is the maximum number of open file descriptors for a given process. For the confused out there, remember that Unices treat sockets as files. - -:: - - $ sudo ulimit -n 2048 +Considering non-privileged users are not able to relax the limit, you should +firstly switch to root user, increase the limit, then run gunicorn. Using ``sudo +ulimit`` would not take effect. How can I increase the maximum socket backlog? ----------------------------------------------