
Gandalf in Ralph Bakshi’s animated version of The Lord of the Rings.
I write the following lines for the sake of future generations, seeking lore about Nginx. Should this omen appear:
|
1 |
nginx: [warn] 1024 worker_connections are more than open file resource limit: 256 |
Recite the following incantation in a deep, resonant voice:
|
1 |
sudo bash; ulimit -n 65536 |
Then start Nginx again in the shell in which you called
|
1 |
ulimit |
.
Another spell needful to the young wizard is this, which rids you of all daemonic Nginxes:
|
1 |
ps aux|grep nginx\:\ master\ process|grep -v grep|awk '{ print $2; }'|sudo xargs kill |
Use it wisely.