错误提示:# 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.`
然后我输入 journalctl -xe 出现了如下情况:
请问怎么办?
参考的教程是这个:
linux dot cn/article-5067-1 dot html
https://linux.cn/article-5067...
一般是因为fail2ban配置文件错误引起的无法启动,可以查看日志
/var/log/fail2ban.log
,/var/log/messages.log
找找哪里出错了。新建一个新的配置文件
/etc/fail2ban/jail.local
,一般不建议修改jail.conf
下面是我的配置文件可以参考下,使用的是最新的centos7
然后启用fail2ban并设为开机自启
如果最后实在还是不行的话,就找其他的教程参考,一个教程不行就多试试其他的教程。