Increase nginx open-files limit on systemd

$ cat /proc/$(cat /run/nginx.pid)/limits
 
$ nano /lib/systemd/system/nginx.service
# --> [Service]
LimitNOFILE=16384
 
$ systemctl daemon-reload
$ systemctl restart nginx && systemctl status nginx

Leave a Reply