V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
kmdd33
V2EX  ›  问与答

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

  •  
  •   kmdd33 · 2017-02-01 22:37:02 +08:00 · 3094 次点击
    这是一个创建于 2843 天前的主题,其中的信息可能已经有所发展或是发生改变。

    错误提示:# 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)

    2 条回复    2017-02-02 13:17:44 +08:00
    Devin
        1
    Devin  
       2017-02-02 09:19:20 +08:00 via iPhone
    selinux 问题,新手实在搞不定就关了吧
    msg7086
        2
    msg7086  
       2017-02-02 13:17:44 +08:00
    其实我也不知道怎么配。我就直接 apt 安装上 fail2ban 结束,应该已经自动配置好了不用我管的。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   5484 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 22ms · UTC 06:01 · PVG 14:01 · LAX 22:01 · JFK 01:01
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.