安装Magento 2.4.6日记之四:Magento安装篇
安装指令:
php bin/magento setup:install
--base-url="https://www.url.com/"
--db-host="localhost"
--db-name="db-name"
--db-user="db-user-name"
--db-password="db-password"
--admin-firstname="admin"
--admin-lastname="admin"
--admin-email="admin@admin.com"
--admin-user="porto"
--admin-password="Temppassword1"
--use-rewrites="1"
--backend-frontname="admin"
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy -f
chown -R www:www /www/wwwroot/magento
find var generated vendor pub/static pub/media app/etc -type f -exec chmod u+w {} +
find var generated vendor pub/static pub/media app/etc -type d -exec chmod u+w {} +
chmod u+x bin/magento
忘记密码可以用
UPDATE admin_user SET password=CONCAT(MD5('qXpassword'), ':qX') WHERE username='admin';
第一次登录可以关掉2FA验证登录
bin/magento module:disable Magento_AdminAdobeImsTwoFactorAuth Magento_TwoFactorAuth
其实也可以编辑
网站内 /app/etc/config.php, 搜索 Factor
改TwoFactorAuth = 0