如何在不使用 ssh 的情况下禁用 Magento 2 维护模式

How can I disable Magento 2 maintenance mode without using ssh

如何在不使用 ssh 的情况下禁用 Magento 2 维护模式?

我的服务器上没有 ssh。我可以禁用维护模式吗?

如果有 var/.maintenance.flag,Magento 2 维护模式开启。唯一的例外与 var/.maintenance.ip 有关。由于它可以包含 IP 地址列表,因此当通过 HTTP 访问入口点并且客户端 IP 地址对应于列表中的条目时,就会发生限制。因此,即使有 var/.maintenance.flag,Magento 2 维护模式也会关闭。

以下命令与 Magento 2 维护模式相关联: magento maintenance:enable [--ip= ... --ip=] | [ip=none]