Was trying to increase open files limit for nginx on a Plesk server following instructions here:
MariaDB on CentOS 7 – “Error in accept: Too many open files”
But the limit was not changing. After digging around I found that Plesk was overriding with a config file here:
1 |
/usr/lib/systemd/system/nginx.service.d/limit_nofile.conf |
As described here:
the easy way to fix open file limit on Plesk is to use:
1 |
/usr/local/psa/admin/sbin/websrv_ulimits --set 100000 --no-restart |