1.安装 sudo apt install fail2ban # 设置开机启动 sudo systemctl enable fail2ban # 查看fail2ban状态 sudo systemctl status fail2ban 查看Fail2ban状态正常,则您的服务器已安装并运行Fail2B
1. 主机信息 主机信息如上所示。 2. 安装ntp # 一般主机默认安装ntp sudo apt isntall ntp systemctl enable ntp systemctl start ntp 3. 安装fail2ban