发布时间:2017-02-17 09:38:30
#!/bin/bashlogs_path="/tomcat/tomcat-token/logs"find $logs_path -mtime +7 -name "localhost_access_log.*.txt" -exec rm -rf {} \;find $logs_path -mtime +7 -name "catalina.*.log" -exec rm -rf {} \;find $logs_path -mtime +7 -name "manager.*.log" -exec rm -rf {} \;find $logs_path -mtime +7 -name ".........【阅读全文】