Home > Article > Backend Development > What should I do if the hard disk of the Linux server running online is insufficient?
The online server is running. Now there is a problem that the hard disk space of a website is insufficient. All the data that can be deleted has been deleted, but it will still be full after a while. What should I do? The server is lnmp. Is there any way to completely solve this problem? How do those large websites operate?
The online server is running. Now there is a problem that the hard disk space of a website is insufficient. All the data that can be deleted has been deleted, but it will still be full after a while. What should I do? The server is lnmp. Is there any way to completely solve this problem? How do those large websites operate?
Logs are retained for N days/years/hours, and excess parts are deleted regularly.
Upload files and save them to a dedicated file server (Qiniu/Youpaiyun/aws)
The website server only stores logs and website code. Both the database and uploaded files exist on other servers.
If it is a cloud server, you can generally add a hard drive. Generally, hard disk shortage is caused by files, so slightly larger website files will have a dedicated file server
Clean large log files and expand the capacity