fail2ban配置后重启失败

ChuyanFang 发布于 02/06 11:24
阅读 357
收藏 0

我在centos7上新配置好fail2ban后重启服务失败:

报错显示日志丢失

    [wdnmd@VM_0_2_centos ~]$ sudo systemctl restart fil2ban
    Failed to restart fil2ban.service: Unit not found.
    [wdnmd@VM_0_2_centos ~]$ sudo systemctl restart fail2ban
    Job for fail2ban.service failed because the control process exited with 
    error code. See "systemctl status fail2ban.service" and "journalctl -xe" 
    for 
    details.
    [wdnmd@VM_0_2_centos ~]$ sudo systemctl status fail2ban.service
    ● fail2ban.service - Fail2Ban Service
    Loaded: loaded (/usr/lib/systemd/system/fail2ban.service; enabled; vendor 
    preset: disabled)
    Active: failed (Result: start-limit) since Wed 2019-02-06 09:31:05 CST; 
    22s ago
    Docs: man:fail2ban(1)
    Process: 7462 ExecStart=/usr/bin/fail2ban-client -x start (code=exited, 
    status=255)

    Feb 06 09:31:04 VM_0_2_centos systemd[1]: fail2ban.service: control 
    process exited, code=exited status=255
    Feb 06 09:31:04 VM_0_2_centos systemd[1]: Failed to start Fail2Ban 
    Service.
    Feb 06 09:31:04 VM_0_2_centos systemd[1]: Unit fail2ban.service entered 
    failed 
    state.
    Feb 06 09:31:04 VM_0_2_centos systemd[1]: fail2ban.service failed.
    Feb 06 09:31:05 VM_0_2_centos systemd[1]: fail2ban.service holdoff time 
    over,  scheduling restart.
    Feb 06 09:31:05 VM_0_2_centos systemd[1]: Stopped Fail2Ban Service.
    Feb 06 09:31:05 VM_0_2_centos systemd[1]: start request repeated too 
    quickly for fail2ban.service
    Feb 06 09:31:05 VM_0_2_centos systemd[1]: Failed to start Fail2Ban 
    Service.
    Feb 06 09:31:05 VM_0_2_centos systemd[1]: Unit fail2ban.service entered 
    failed state.
    Feb 06 09:31:05 VM_0_2_centos systemd[1]: fail2ban.service failed.  
    [wdnmd@VM_0_2_centos ~]$ sudo /usr/bin/fail2ban-client -x start
    [sudo] password for wdnmd:
    ERROR  No file(s) found for glob /opt/openhab/logs/request.log
    ERROR  Failed during configuration: Have not found any log file for openhab- 
    auth jail
    

 

加载中
返回顶部
顶部