Magento 服务暂时不可用?

发布于 2024-12-15 16:05:16 字数 217 浏览 2 评论 0原文

我的应用程序昨天运行良好。我今天启动了我的电脑。当我尝试启动 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(13

李白 2024-12-22 16:05:16

检查是否有名为 ma​​intenance.flag 的文件,如果有,请删除它

Magento 1.x:maintenance.flag 文件位于:magento 根目录

Magento 2.x:maintenance.flag 文件位于:var 文件夹

当 Magento 执行某些任务时,它会临时创建此文件。 Magento 检查它是否存在,如果存在,则会将用户发送到您所描述的页面。

它应该在处理完正在执行的任何任务后自动删除该文件,但我遇到过出现问题并且无法删除它的情况。

Check if there is a file called maintenance.flag and if so delete it.

Magento 1.x : maintenance.flag file is in : magento root directory

Magento 2.x : maintenance.flag file is in : var folder

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.

泪是无色的血 2024-12-22 16:05:16

只需删除根文件夹中的 maintenance.flag 文件,然后删除 var/ 文件夹中的缓存文件夹和会话文件夹的文件即可。

Simply delete the maintenance.flag file in root folder and then delete the files of cache folder and session folder inside var/ folder.

夜空下最亮的亮点 2024-12-22 16:05:16

现在,在新版本 ma​​gento2 中,生成错误服务暂时不可用。

Remove maintenance.flag

从此路径更改为magento2/var/maintenance.flag

$ rm maintenance.flag

Now in new version magento2 on Generate error Service Temporarily Unavailable.

Remove maintenance.flag

From this path which is changed magento2/var/maintenance.flag.

Also

$ rm maintenance.flag
随梦而飞# 2024-12-22 16:05:16

要修复 Magento 2 服务暂时不可用,您应该:

  • 删除名为 的文件Magento 根文件夹中的 var/.maintenance.flag
  • 删除 Magento 缓存(如果有): php bin/magento cache:flush

To fix Service Temporarily Unavailable Magento 2, you should:

  • Delete a file called var/.maintenance.flag in Magento root folder
  • Remove Magento cache if any: php bin/magento cache:flush
镜花水月 2024-12-22 16:05:16

我遇到了同样的问题,但在我的 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.

中二柚 2024-12-22 16:05:16

您需要按照以下步骤操作:

  1. 通过 cPanel/FTP 转到 magento 根目录
  2. 对于 Magento1,您将找到 ma​​intenance.flag 并将其删除
  3. 对于 Magento2,删除 var/maintenance。旗帜

You need to follow these steps:

  1. Go to magento root directory via cPanel/FTP
  2. In case of Magento1, you will find maintenance.flag and delete it
  3. In case of Magento2, delete var/maintenance.flag
晌融 2024-12-22 16:05:16

通过FTP/Cpanel访问您的网站,找到maintenance.flag并删除

go to your website via FTP/Cpanel, find maintenance.flag and remove

明媚如初 2024-12-22 16:05:16

在 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.

指尖上的星空 2024-12-22 16:05:16

您可以执行以下操作:

转到 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

ゞ花落谁相伴 2024-12-22 16:05:16

检查你的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.

爱,才寂寞 2024-12-22 16:05:16

当你安装新插件时,我总是会发生这种情况。
您只需删除根目录中的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

樱花落人离去 2024-12-22 16:05:16

如果删除该标志则表明服务暂时不可用。
转到“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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文