composer 安装magento

magento 收藏
0 23

1、获取资源

composer create-project --repository-url=https://repo.magento.com/ magento/project-community-edition=2.4.0 /www/wwwroot/magento   //社区版
composer create-project --repository-url=https://repo.magento.com/ magento/project-enterprise-edition=2.4.0 /www/wwwroot/magento   //企业版

2、进入根目录

touch install.sh  //创建install.sh

vim install.sh   //编辑install.sh

bin/magento setup:install \
--base-url=http://localhost/magento2ee \
--db-host=localhost \
--db-name=magento \
--db-user=magento \
--db-password=magento \
--admin-firstname=admin \
--admin-lastname=admin \
--admin-email=admin@admin.com \
--admin-user=admin \
--admin-password=admin123 \
--language=en_US \
--currency=USD \
--timezone=America/Chicago \
--use-rewrites=1






    暂时没有人评论