Get the App
SLTechnology News&Howtos  ›  Development  › 

How to solve the no space left on device error in CentOS

Shulou Source: shulou.com Published: 2022-05-31 22:36:30 10月27日 Update

This article mainly introduces the relevant knowledge of how to solve no space left on device errors in CentOS, the content is detailed and easy to understand, the operation is simple and fast, and has a certain reference value, I believe you will have something to gain after reading this article on how to solve no space left on device errors in CentOS. Let's take a look.

Solve

1. Use the command: df-lk

It was found that a disk was full.

2. Use the command: du-- max-depth=1-h

Look for large files and find that there is 17g under the / home folder, because my apache is installed under / home, which must be the space occupied by the log files running on the website.

3. Enter the logs directory under apache

Use the command: ls-lht

Check the size of the file, sure enough, there is an 8.6g file, just delete it.

4. Use the command again: df-lk

Then start apache and nginx no problem, solve.

This is the end of the article on "how to solve no space left on device errors in CentOS". Thank you for reading! I believe that everyone has a certain understanding of the knowledge of "how to solve no space left on device errors in CentOS". If you want to learn more knowledge, you are welcome to follow the industry information channel.

Tags: File error command knowledge content article next thing value size easy to operate folder article log easy to understand more directory look disk space Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MariaDB Apple Huawei Shulou Technology MySQL