There are no commands defined in the "cache" namespace.

clipboard.png
as shown in the figure: I want to refresh the magento, as well as foreground compilation and background compilation, all prompt me for errors.
I tried to find the answer on the Internet. I was prompted to give permission on the Internet, but I still reported the same error

.

which god knows, is there any other solution? Wait online, call for help, thank you

Mar.01,2021

magento, this thing hasn't been used for a long time, and it's a really awkward framework to configure.
this seems to be a permission problem, or else it is the env.php file. You can try the following commands:

php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy
php bin/magento indexer:reindex
php bin/magento cache:flush

then do the following

sudo chmod 777 var -R
sudo chmod 777 pub -R
sudo php bin/magento setup:static-content:deploy
Menu