使用docker一键安装magento2 2.4.2-p1
Using docker to install magento2 2.4.2-p1
Run command
docker run --privileged=true --restart=always -d \ -p 9730:80 -p 9731:8088 \ -p 8089:8089 \ --name my-magento24-app \ -e "webRootName=pub" \ zaixiaoqu/magento24-local:v1.0.0
Site root
/var/www/magento24
You can map it using - V
for example:
-v /Users/juddy/Desktop/my-work:/var/www/magento24
frontend
admin
http://localhost:8089/admin_zrbywj
account:admin
password:admin123
phpmyadmin
http://localhost:9731
root:root
password:taidu
Did you fail to log in ?
Turn off security authentication
magento module:disable Magento_TwoFactorAuth php bin/magento cache:clean php bin/magento cache:flush magento setup:di:compile