安装(重装)系统命令:
> 发生问题就重装吧,不要和这个magento斗法:
```
php bin/magento setup:install --backend-frontname="adminlogin" \
--key="dddddddddddddd" \
--base-url="http://magento.liangdabiao.com" \
--base-url-secure="https://magento.liangdabiao.com" \
--db-host=localhost \
--db-name=abcabca\
--db-user=abcabca\
--db-password='abcabca' \
--admin-firstname=abcabca \
--admin-lastname=abcabca \
--admin-email=497070928@qq.com \
--admin-user=admin \
--admin-password=abcabca_ZB4 \
--language=en_US \
--currency=USD \
--timezone=America/Chicago \
--use-rewrites=1
```
*****
万能解决命令:
```
php bin/magento maintenance:enable
rm -rf var/di/* && rm -rf var/generation/* && rm -rf var/cache/* && rm -rf var/page_cache/* && rm -rf var/view_preprocessed/* && rm -rf pub/static/* && rm -rf generated/* && mkdir var/di
php bin/magento setup:upgrade && php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy -f && php bin/magento indexer:reindex && php bin/magento maintenance:disable && php bin/magento cache:clean && php bin/magento cache:flush
chmod -R 777 *
```
*****