简体   繁体   English

Fedora 20“ [Errno 24]打开的文件太多”错误上的Fail2Ban v0.9错误

[英]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. 使用指南在Fedora 20服务器(在Digital Ocean上运行)上成功安装了fail2ban之后,我检查了fail2ban日志后才发现存在多个“ [Errno 24]打开的文件太多”错误。

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. 我四处搜寻,发现需要增加fail2ban的文件描述符数量(当前为1024),但是找不到可行的解决方案。

How can I increase the number of file descriptors for fail2ban, or is there any other workaround under this environment? 如何增加fail2ban的文件描述符数量,或者在这种环境下还有其他解决方法?

# 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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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