程序分为两部分: /housekeep/scripts/housekeep_ux.cfg (将需要清理的日志路径和相关配置写入此) /housekeep/scripts/housekeep_ux.sh (具体的清理执行脚本,设置完成后将housekeep_ux.sh加入cron) 要提前创建归档文件 Read More
posted @ 2022-01-12 21:00 夏覓 Views(148) Comments(0) Diggs(0) Edit
# date -d "$(awk -F. '{print $1}' /proc/uptime) second ago" +"%Y-%m-%d %H:%M:%S" 2021-12-18 21:55:56 # cat /proc/uptime 2144676.83 2131002.93 # date - Read More
posted @ 2022-01-12 17:56 夏覓 Views(27) Comments(0) Diggs(0) Edit