第一步: 添加定时任务:crontab -e 然后添加一行: 每天5点30运行30 5 * * * /home//script/log_clean.sh (其时间有分、时、日、月、周) 第二步: 编写log_clean.sh,内容为: #! /bin/shcd /home/nea/log#压缩3天前 Read More
posted @ 2020-12-02 17:46 xujf Views(626) Comments(0) Diggs(0) Edit
一、线程的基本状态 各种状态一目了然,值得一提的是"blocked"这个状态:线程在Running的过程中可能会遇到阻塞(Blocked)情况 调用join()和sleep()方法,sleep()时间结束或被打断,join()中断,IO完成都会回到Runnable状态,等待JVM的调度。 调用wai Read More
posted @ 2020-12-02 17:25 xujf Views(112) Comments(0) Diggs(0) Edit