alert日志文件过大的处理

1.清空
  cat /dev/null > alert_sid.log
2.截断
     tail -n 1000 alert_sid.log > alert_sid.log
3.使用echo
     echo "" > alert_sid.log

猜你喜欢

转载自blog.csdn.net/ghostliming/article/details/77649871
今日推荐