mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
Merge pull request #2173 from julyclyde/master
Update faq.rst and fix technical mistake on ulimit
This commit is contained in:
commit
8a41cd2838
@ -129,9 +129,13 @@ 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:: ``sudo ulimit`` may not work
|
||||||
|
|
||||||
$ 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.
|
||||||
|
|
||||||
|
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?
|
||||||
----------------------------------------------
|
----------------------------------------------
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user