php 服务器中的磁盘配额超出警告
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/23194890/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Disk quota exceeded warning in server
提问by krish
i have a question for this warning
我对此警告有疑问
Warning: session_start(): open(/tmp/sess_ba3cae26d5ca3bfb594c3424a10fe9c4, O_RDWR) failed: Disk quota exceeded (122) in /home/ericramirez19/public_html/wp-content/plugins/buddypress-media/index.php on line 68
警告: session_start(): open(/tmp/sess_ba3cae26d5ca3bfb594c3424a10fe9c4, O_RDWR) failed: 磁盘配额超过 (122) in /home/ericramirez19/public_html/wp-content/plugins/buddypress-media/index.php on line
my index page is correct and what things go to this error ?, Is it server problem or code? I am using word press so any solution for word press?
我的索引页是正确的,这个错误是怎么回事?,是服务器问题还是代码?我正在使用 wordpress,所以 wordpress 有什么解决方案吗?
回答by álvaro González
The disk quota is the maximum amount of data you're allowed to store in a given disk or location. You should first verify if you're making proper use of your disk space (i.e., do you have thousands of temporary files you no longer need but failed to remove?). If you actually decide you simply need more space, you should contact your hosting provider and upgrade your plan.
磁盘配额是您允许在给定磁盘或位置中存储的最大数据量。您应该首先验证您是否正确使用了磁盘空间(即,您是否有数千个不再需要但未能删除的临时文件?)。如果您确实决定只需要更多空间,您应该联系您的托管服务提供商并升级您的计划。
In your case, you might consider not using the system-wide temporary directory for session storage.
在您的情况下,您可能会考虑不使用系统范围的临时目录进行会话存储。
回答by Thomas
There is another limit as well - inodes
(number of files allowed), you can check that by command
还有另一个限制 - inodes
(允许的文件数),您可以通过命令检查
df -i
i've found on mine that /var/lib/php5
contained nearly million files so i've deleted all session files there and problem was solved
我发现我的/var/lib/php5
文件中包含近百万个文件,所以我删除了那里的所有会话文件,问题解决了
find /var/lib/php5/ -name "sess_*" -delete
回答by Puneet Verma
I saw that error several times, and the following solution helps me to solve the issue:-
我多次看到该错误,以下解决方案可帮助我解决该问题:-
1) Deleted unwanted and unnecessary emails (once I have around 57652 unread emails)
2) There is a 'tmp' folder in your root directory, deleted all files from that.
3) File created by you or any of your application which is taking large memory.
4) Remove data from trash
Conclusion :This Issue is because of few files taking more spaces then specified by your hosting provider. So either upgrade your plan or find the culprit file and remove it.
结论:这个问题是因为很少有文件占用了更多空间,然后由您的托管服务提供商指定。因此,要么升级您的计划,要么找到罪魁祸首文件并将其删除。
回答by Bogdan
I have the same error when I upload back-up created on my old hosting to my new server. My mistake was to upload archive without opening on my home PC.
当我将在旧主机上创建的备份上传到新服务器时,我遇到了同样的错误。我的错误是上传档案而没有在我的家用电脑上打开。
So, how I solve such error: I just unzip backup on my PC and create new zip-archive. When I upload files againto my server the problem was solved.
那么,我如何解决此类错误:我只是在我的 PC 上解压缩备份并创建新的 zip-archive。当我再次将文件上传到我的服务器时,问题就解决了。
回答by GideonoVich
In my case the culprit was emails. The system was clogged with undeleted mails. Once the old mails were deleted, everything became fine.
就我而言,罪魁祸首是电子邮件。系统被未删除的邮件堵塞。删除旧邮件后,一切都好了。