How to deal with CentOS server disk full
[Root @ localhost mapper] # df
File System 1 K-block used available % mount point/dev/mapper/VolGroup00-LogVol00269232512 255332084 3520 100% 101086 // dev/sda1 20998 74869 22% 5956256/boottmpfs 5956256 0 0%/dev/shmnone 5956256 104 5956152 1%/var/lib/xenstored mount point/full... Run the command du-sh/* | sort-nr to view [root @ localhost data0] # du-sh/* | sort-nr200G/data1 (this directory is too large) 677 M/var240M/lib236K/root148K/dev134M/etc56K/tmp42M/sbin23M/lib6416M/boot16K/lost + found/bin8.1G/found/mnt found/data1 directory too large, find out the reason. This is the NGINX log record. After directly deleting (rm), you can view the summary. Run the command to check whether the file occupies a large space, then analyze what the file is like. If it is a log or something like this, back up and kill it directly.