How to Install Magento 2.4.1 under Aliyun Centos 8?

1 Upload magento-ce-2.4.1-2020-09-25-04-08-02.zip to your host, and unzip it.
2. find . -type d -exec chmod 777 {} \; && find . -type f -exec chmod 777 {} \;
chmod u+x bin/magento

3. export PATH=$PATH:/home/wwwroot/default/bin

4. php bin/magento setup:install –base-url=https://www.cheapglasses123.com/ \
–db-host=localhost –db-name=cheapglasses –db-user=eyeglasses –db-password=’prescriptionglasses’ \
–admin-firstname=eye –admin-lastname=care –admin-email=glasses@cheapglasses123.com \
–admin-user=sun –admin-password=eyewear –language=en_US \
–currency=USD –timezone=America/Chicago –use-rewrites=1 \
–search-engine=elasticsearch7 –elasticsearch-host=localhost \
–elasticsearch-port=9200

5. You need to configure Two-Factor Authorization in order to proceed to your store’s admin area, if you don’t need, run:
bin/magento module:disable Magento_TwoFactorAuth

6. php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy -f
php bin/magento cache:clean
php bin/magento cache:flush

7. If you meet blank page when you visit homepage or login your admin panel, rerun:
find . -type d -exec chmod 777 {} \; && find . -type f -exec chmod 777 {} \;