按照网上教程配置 fail2ban,做一下安全防御,最后出现了 Job for fail2ban.service failed 错误,怎么办?

2017-02-01 22:37:02 +08:00
 kmdd33

错误提示:# sudo service fail2ban restart Redirecting to /bin/systemctl restart fail2ban.service Job for fail2ban.service failed because the control process exited with error code. See "systemctl status fail2ban.service" and "journalctl -xe" for details.

参考的教程是这个: https://linux.cn/article-5067-1.html

然后我输入 journalctl -xe 出现了如下情况: fail2ban.service" and "journalctl -xe" for details. [root@xiaoshu tmp]# journalctl -xe Feb 01 14:32:13 xiaoshu fail2ban-client[27696]: 'enabled = true\n' Feb 01 14:32:13 xiaoshu systemd[1]: fail2ban.service: control process exited, code=exited status=255 Feb 01 14:32:13 xiaoshu systemd[1]: Failed to start Fail2Ban Service. -- Subject: Unit fail2ban.service has failed -- Defined-By: systemd -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel

-- Unit fail2ban.service has failed.

-- The result is failed. Feb 01 14:32:13 xiaoshu systemd[1]: Unit fail2ban.service entered failed state. Feb 01 14:32:13 xiaoshu systemd[1]: fail2ban.service failed. Feb 01 14:32:13 xiaoshu systemd[1]: fail2ban.service holdoff time over, scheduling restart. Feb 01 14:32:13 xiaoshu systemd[1]: start request repeated too quickly for fail2ban.service Feb 01 14:32:13 xiaoshu systemd[1]: Failed to start Fail2Ban Service. -- Subject: Unit fail2ban.service has failed -- Defined-By: systemd -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel

-- Unit fail2ban.service has failed.

-- The result is failed. Feb 01 14:32:13 xiaoshu systemd[1]: Unit fail2ban.service entered failed state. Feb 01 14:32:13 xiaoshu systemd[1]: fail2ban.service failed. lines 2481-2504/2504 (END)

3063 次点击
所在节点    问与答
2 条回复
Devin
2017-02-02 09:19:20 +08:00
selinux 问题,新手实在搞不定就关了吧
msg7086
2017-02-02 13:17:44 +08:00
其实我也不知道怎么配。我就直接 apt 安装上 fail2ban 结束,应该已经自动配置好了不用我管的。

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/337662

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX