記錄一下 nginx shell 腳本掃描日誌添加 IP 黑名單

#!/bin/bash date_Y_m_d=`date +%Y-%m-%d` date_30m_ago=`date -d '20 minute ago' +%H:%M` date_now=`date +%H:%M` log_path='/www/wwwlogs' cd /www/wwwlogs/ log_file=$(ls *.log) black_ip_file=/www/server/
相關文章
相關標籤/搜索