Ubuntu 20.04上安装Nginx,MySQL,PHP
sudo apt update
安装Nginx
sudo apt install nginx
安装PHP7.4
sudo apt install php7.4 php7.4-common php7.4-cli
sudo apt install php7.4-curl php7.4-json php7.4-gd php7.4-mbstring php7.4-intl php7.4-bcmath php7.4-bz2 php7.4-readline php7.4-zip php7.4-mysql php7.4-soap
安装mysql
sudo apt-get install mysql-server mysql-client
alter user 'root'@'localhost' identified with mysql_native_password by '123456';//mysql8 needs to run
安装Composer
wget https://github.com/composer/composer/releases/download/1.10.22/composer.phar
mv composer.phar composer
chmod +x composer
sudo mv composer /usr/local/bin
安装ES
wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.6.0-linux-x86_64.tar.gz
下载Magento2.4.0
composer create-project --repository-url=https://repo.magento.com/ magento/project-community-edit