Linux_df_du_find_clean up expired logs

Initially, it was found that the access to the project under tomcat was wrong, and then restarted tomcat and found that the tomcat home page could not be accessed after restarting, and then checked various logs

Finally, I thought about whether the disk space is not enough (the startup of the service will take up a certain amount of space)

First of all,

 from the above picture, it is indeed the disk space is full

 

 du -sh / look at which directory, and then go to another directory du -sh * 
keep going, you will know which directory it is

 
In the end, it was found that the project log was too large and too large
 cd /u01/webapp/cjxf_sms_dac/demo/csm.backend.sso.web/WEB-INF/logs  
 find . -type f -mtime +50 |xargs rm delete 50 days old
Check disk space again

 OK. solve

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326839514&siteId=291194637