1. First, determine whether there is insufficient disk space.
Enter the following command to view the disk information:
df –h
du -h --max-depth=1
ls –lhS
> ./catalina.out
Note: If the process is in use when clearing the log, an error will be reported when using rm -f to delete, or the disk will still be full even if it is deleted, so Using the command to clear the contents of the log file is better than deleting this file.
Recommended related articles and tutorials:The above is the detailed content of Solution to insufficient disk space in linux. For more information, please follow other related articles on the PHP Chinese website!