当我尝试访问 localhost/magento
通过 CMD 安装 Magento 2 后,发生找不到对象错误。
安装命令:
php bin/magento setup:install --base-url=”http://localhost/magento" --db-host=”localhost” --db-name=”magento" --db-user=”root” --db-password=”” --admin-firstname=”admin” --admin-lastname=”admin” --admin-email=”user@example.com” --admin-user=”admin” --admin-password=”admin123" --use-rewrites=”1" --backend-frontname=”admin”
在浏览器上访问 localhost/magento
时发生此错误:
enter image description here