Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
49be232
commit 74d4848
Showing
2 changed files
with
41 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
To get around the open file limit, do the following (for Ubuntu): | ||
|
||
sudo vim /etc/sysctl.conf | ||
|
||
Add the following line: | ||
fs.file-max = 65000 | ||
|
||
sudo vim /etc/security/limits.conf | ||
|
||
Add the following lines: | ||
www-data soft nofile 9000 | ||
www-data hard nofile 65000 | ||
|
||
(restart for the above to take affect) | ||
|
||
sudo vim /etc/pam.d/common-session | ||
|
||
Add the following line: | ||
session required pam_limits.so | ||
|
||
sudo sysctl -p | ||
|
||
sudo vim /etc/nginx/nginx.conf | ||
|
||
Add the following line: | ||
worker_rlimit_nofile 9000; | ||
|
||
sudo service nginx restart |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters