Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
使用本指南在 Fedora 20 服务器(在数字海洋上运行)成功安装 fail2ban 后,我检查了 fail2ban 日志,发现有多个“[Errno 24] Too many open files”错误。
我四处搜索并意识到我需要增加 fail2ban 的文件描述符数量(目前为 1024),但找不到有效的解决方案。
如何增加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