Magento 服务暂时不可用?
我的应用程序昨天运行良好。我今天启动了我的电脑。当我尝试启动 Magento 时,收到此错误消息。
服务暂时不可用
由于维护停机或容量问题,服务器暂时无法满足您的请求。请稍后重试。
我什至无法打开管理页面或在页面上看到任何类型的错误。如果我访问 Magento 站点的任何 URL,我都会得到上述输出。我该如何解决这个问题?
My application was working fine yesterday. I started my PC today. When I tried to start Magento I got this error message.
Service Temporarily Unavailable
The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.
I am not even able to open the admin page or see any sort of errors on the page. If I visit any URL of my Magento site I am getting the above output. How do I resolve this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(13)
检查是否有名为 maintenance.flag 的文件,如果有,请删除它。
当 Magento 执行某些任务时,它会临时创建此文件。 Magento 检查它是否存在,如果存在,则会将用户发送到您所描述的页面。
它应该在处理完正在执行的任何任务后自动删除该文件,但我遇到过出现问题并且无法删除它的情况。
Check if there is a file called maintenance.flag and if so delete it.
When Magento is performing certain tasks it temporarily creates this file. Magento checks for its existence and if it's there will send users to the page you described.
It's supposed to automatically delete this file when done processing whatever task it was doing, but I've experienced occasions where something went wrong and it failed to delete it.
只需删除根文件夹中的
maintenance.flag
文件,然后删除var/
文件夹中的缓存文件夹和会话文件夹的文件即可。Simply delete the
maintenance.flag
file in root folder and then delete the files of cache folder and session folder insidevar/
folder.现在,在新版本 magento2 中,生成错误服务暂时不可用。
从此路径更改为
magento2/var/maintenance.flag
。还
Now in new version magento2 on Generate error Service Temporarily Unavailable.
From this path which is changed
magento2/var/maintenance.flag
.Also
要修复 Magento 2 服务暂时不可用,您应该:
的文件Magento 根文件夹中的 var/.maintenance.flag
php bin/magento cache:flush
To fix Service Temporarily Unavailable Magento 2, you should:
var/.maintenance.flag
in Magento root folderphp bin/magento cache:flush
我遇到了同样的问题,但在我的 Magento 根目录中没有找到 Maintenance.flag 文件。
我只是删除了缓存和会话文件,然后一切又恢复了。
I had the same issue but have not found the maintenance.flag file in my Magento root.
I simply deleted cache and sessions files and all worked again.
您需要按照以下步骤操作:
You need to follow these steps:
通过
FTP/Cpanel
访问您的网站,找到maintenance.flag
并删除go to your website via
FTP/Cpanel
, findmaintenance.flag
and remove在 Magento 2 中,您必须删除位于 /var/.maintenance.flag 中的文件 - 经过一番搜索后才意识到,所以我将分享。
In Magento 2 You have to remove file located in /var/.maintenance.flag - just realized that after some searching, so i shall share.
您可以执行以下操作:
转到 http://localhost/magento/downloader url。在这里,我在本地主机上运行 magento 商店。现在您可以登录 magento 连接管理器并卸载之前安装的扩展。
希望这有效!!!!
谢谢。
You can do this thing:
Go to http://localhost/magento/downloader url. Here I am running the magento store on my localhost. Now you can login to magento connect manager and uninstall the extension which you installed previously.
Hope this works !!!!!
Thanks.
如果你遇到这个问题(就像我一样)并且任何地方都不存在maintenance.flag文件,那么就是Redis缓存导致了问题;清除它。
我必须联系我的托管公司并让他们清除 Redis 缓存,因为我无权访问该缓存。
我用这个答案解决了这个问题: https://magento.stackexchange.com/a/55814/77803
If you run into this problem (like I did) and NO maintenance.flag file exists anywhere, it's the Redis cache that's causing the problem; clear it.
I had to clear the Redis cache by contacting my hosting company and let them do it because I don't have access to that cache.
I figured this out using this answer: https://magento.stackexchange.com/a/55814/77803
检查你的Magento安装目录的根文件夹。你会发现maintenance.flag文件,删除它并刷新站点。它会正常工作。
Check the root folder of your Magento installation directory .You will find maintenance.flag file, delete it and refresh the site .it will work fine.
当你安装新插件时,我总是会发生这种情况。
您只需删除根目录中的maintenance.flag 文件即可
I happen all the time when you install a new plugin.
You just have to delete maintenance.flag file in your root directory
如果删除该标志则表明服务暂时不可用。
转到“http://localhost.com/downloader”并unisntall滑块横幅、BusinessDecision_Interaktingslider、lightbox2和我的另一个不记得了。
If removing the flag shows service temporary unavailable.
Go to "http://localhost.com/downloader" and unisntall slider banner,BusinessDecision_Interaktingslider,lightbox2 and anotherone that I dont remember.