Home > Backend Development > PHP Tutorial > What should I do if the hard disk of the Linux server running online is insufficient?

What should I do if the hard disk of the Linux server running online is insufficient?

WBOY
Release: 2016-10-11 14:23:43
Original
1069 people have browsed it

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?

Reply content:

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

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template