配置完fail2ban后重启服务失败

新手上路,请多包涵

我在自己的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
[wdnmd@VM_0_2_centos ~]$  Have not found any log file for openhab-auth jail
-bash: Have: command not found

报错显示日志文件丢失,该如何解决?

阅读 4.5k
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题