How to enable/disable maintenance mode in Magento 2?

You can use the below commands for enable/disable the maintenance mode:
how- to- enable- disable- maintenance- mode
enable-disable-maintenance-mode
For Enable maintenance mode
bin/magento maintenance:enable

For Disable maintenance mode
bin/magento maintenance:disable

If you want to enable maintenance mode except your IPs:
bin/magento maintenance:enable --ip=X1.X1.X1.X1 --ip=X2.X2.X2.X2

Please leave your comment for asking any question or suggestion.

Need Help?

expoundsofttechsolutionhow- to- enable- disable- maintenance- mode how- to- enable- disable- maintenance- mode