Magento2 完整卸载自定义模块的方法

停用模块

bin/magento module:disable {module name}

删除模块文件夹

rm -rf app/code/{module folder}

更新模块

bin/magento setup:upgrade

清除缓存

bin/magento cache:flush

删除setup_module表中_信息

DELETE FROM setup_module WHERE module='Mageplaza_HelloWorld'

检查app/etc/config.php文件中_信息

如果您通过composer安装:在命令行运行:

php bin/magento module:uninstall -r <Vendor>_<Module>

Leave a comment

您的邮箱地址不会被公开。 必填项已用 * 标注