Update faq.rst

This commit is contained in:
REN Xiaolei 2019-11-18 20:53:32 +08:00 committed by GitHub
parent 74cf2ce084
commit 9545e01d17
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -128,10 +128,14 @@ 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 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, of open file descriptors for a given process. For the confused out there,
remember that Unices treat sockets as files. remember that Unices treat sockets as files.
.. warning::
Considering non-privileged users are not able to relax the limit, you should 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 firstly switch to root user, increase the limit, then run gunicorn. Using ``sudo
ulimit`` would not take effect. ulimit`` would not take effect.
Try systemd's service unit file, or an initscript which runs as root.
How can I increase the maximum socket backlog? How can I increase the maximum socket backlog?
---------------------------------------------- ----------------------------------------------