简体   繁体   中英

Fail2Ban v0.9 On Fedora 20 “[Errno 24] Too many open files” error

After successfully installing fail2ban on Fedora 20 server (Running On Digital Ocean) using this guide, I checked the fail2ban logs only to find that there were multiple "[Errno 24] Too many open files" errors.

I googled around and realized that I need to increase the number of file descriptors for fail2ban (which currently stands at 1024), but couldn't find a working solution.

How can I increase the number of file descriptors for fail2ban, or is there any other workaround under this environment?

# mkdir --parents /etc/systemd/system/fail2ban.service.d
# cat << EOF > /etc/systemd/system/fail2ban.service.d/limits.conf
[Service]
LimitNOFILE=2048
EOF
# systemctl daemon-reload

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM