vi /etc/crontab
*/5 * * * * root awk '{print $1}' /var/log/nginx/access.log | sort | uniq -c | sort -n > /log/stat.txt
*/5 * * * * root awk '$9!=200{print}' /var/log/nginx/access.log > /log/!200.txt
*/5 * * * * root cat /var/log/nginx/access.log > /log/access.txt
友情提示:本站所有文章,如无特殊说明或标注,均为何星星原创发布。与此同时,趋于近年来本站的文章内容频繁被他站盗用与机器采集,现已全局禁用网站文字内容操作,了解详情或转载文章请 点此 继续!
0 条评论