我正在尝试将fail2ban 的后端设置为systemd。文件:
/etc/fail2ban/jail.local
选项:
backend = systemd
它不会启动,日志:
2018-06-27 12:09:53,387 fail2ban.jail [10240]: ERROR Backend 'systemd' failed to initialize due to No module named 'systemd'
有什么解决办法?
我试过这些:
python3 -c 'from systemd import journal; print("OK")'
python2 -c 'from systemd import journal; print "OK"'
ImportError: No module named systemd