Home >Backend Development >PHP Tutorial >Failure analysis after discovering that the disk of the web server is full at work
Problems encountered:
I received an alarm today that the disk of a certain online server was full. However, I logged in and used du -sh /log/* to check and found that the size of the file was much smaller than the disk space. I don’t know how to solve it at this time!
Solution:
Actually, simply deleting the log is not enough, because the corresponding service is still running at this time. Under normal circumstances, when the service is still running, files cannot be deleted, so the solution is The solution is to stop the relevant services first, and then delete the files, then it will be OK.
Summary of the question:
When I encounter this problem, I still seem a little impatient, because after all, I have been calling the police, so next time I encounter a similar problem like the above, I should calm down and search for relevant information carefully!
The above has introduced the fault analysis after the disk of the Web server was found to be full at work, including aspects of the problem. I hope it will be helpful to friends who are interested in PHP tutorials.