如何修复 WordPress 中的“达到 508 资源限制”错误?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/20040307/
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
How to fix the "508 Resource Limit is reached" error in WordPress?
提问by bhaskar
508 Resource Limit is reached - Wordpress
达到 508 资源限制 - Wordpress
This error occurs again and again, and I can't post a single post without seeing this error:
此错误一次又一次发生,我无法在没有看到此错误的情况下发布单个帖子:
The website is temporarily unable to service your request as it exceeded resource limit. Please try again later.
由于超出资源限制,该网站暂时无法为您的请求提供服务。请稍后再试。
How can I fix this problem?
我该如何解决这个问题?
回答by AjayR
Actually it happens when the number of processes exceeds the limits set by the hosting provider.
实际上,当进程数量超过托管提供商设置的限制时,就会发生这种情况。
To avoid either we need to enhance the capacity by hosting providers or we need to check in the code whether any process takes longer time (like background tasks).
为了避免我们需要通过托管提供商来增强容量,或者我们需要检查代码是否有任何进程需要更长的时间(如后台任务)。
回答by Sajan Parikh
Your server is imposing some resource limit that your site is hitting. This is usually RAM, CPU, or INODES.
您的服务器正在施加您的站点正在达到的一些资源限制。这通常是 RAM、CPU 或 INODES。
Ask your server administrator what the limits are and what it is you are hitting to solve.
询问您的服务器管理员限制是什么以及您要解决什么问题。
回答by Joy Picar
I've already encountered this error and this is the best solution I've found:
我已经遇到过这个错误,这是我找到的最好的解决方案:
In your root folder (probably called public_html)please add this code to your .htaccess file...
在您的根文件夹(可能称为 public_html)中,请将此代码添加到您的 .htaccess 文件中...
REPLACE the 00.00.00.000 with YOUR IP address. If you don't know your IP address buzz over to What Is My IP - The IP Address Experts Since 1999
用您的 IP 地址替换 00.00.00.000。如果您不知道自己的 IP 地址,请转到“我的 IP 是什么”——自 1999 年以来的 IP 地址专家
#By Marky WP Root Directory to deny entry for WP-Login & xmlrpc
<Files wp-login.php>
order deny,allow
deny from all
allow from 00.00.00.000
</Files>
<Files xmlrpc.php>
order deny,allow
deny from all
allow from 00.00.00.000
</Files>
In your wp-admin folder please add this code to your .htaccess file...
在您的 wp-admin 文件夹中,请将此代码添加到您的 .htaccess 文件中...
#By Marky WP Admin Folder to deny entry for entire admin folder
order deny,allow
deny from all
allow from 00.00.00.000
<Files index.php>
order deny,allow
deny from all
allow from 00.00.00.000
</Files>
来自:https: //www.quora.com/I-am-using-shared-hosting-and-my-IO-usage-is-full-after-every-minute-What-is-this-IO-usage- in-cPanel-How-can-I-reduce-it
回答by Sahil Kumar
On my blog, the reason of this error is a plugin named Broken Link checker. This plugin has high resource usage from hosting, resulting in this error.
在我的博客上,这个错误的原因是一个名为Broken Link checker的插件。这个插件从托管中占用了很高的资源,导致了这个错误。
Check if a plugin on your installation is behaving similarly like this.
检查您安装的插件是否与此类似。
回答by sharifa bahar
I faced to this problem a lot when developing my company's website using WordPress. Finally I found that it happened because me and my colleague update the website at the same time as well as we installed and activated many plugins that we did not use them. The solution for me was we update the website in different time and deactivated and uninstalled those plugins.
在使用 WordPress 开发我公司的网站时,我经常遇到这个问题。最后我发现它发生了,因为我和我的同事同时更新了网站,并且我们安装并激活了许多我们没有使用它们的插件。我的解决方案是我们在不同的时间更新网站并停用和卸载这些插件。