1.安装Composer(略)。
2.安装Docker。 社区版本:https://hub.docker.com/search?type=edition&offering=community
3.安装DDEV。
curl -L https://raw.githubusercontent.com/drud/ddev/master/scripts/install_ddev.sh | bash
(Linux、windows系统的安装请参阅DDEV安装文档。)
4.创建Drupal项目。
mkdir my-drupal10-site
cd my-drupal10-site
ddev config --project-type=drupal10 --docroot=web --create-docroot
ddev start
ddev composer create "drupal/recommended-project"
ddev composer require drush/drush
ddev launch