Drupal – Install
     发布在:PHP      浏览:64      评论:0 条评论


# Download the core software
> composer create-project drupal-composer/drupal-project:8.x-dev myDir --no-interaction --no-install
# Enter this command, where mydir

# Download a module or theme
> composer require drupal/geofield

# Update previously-downloaded files
> composer update drupal/geofield --with-dependencies
# or update to fixed version
> composer require drupal/geofield:1.7


Download Drupal zip

And install a temporary demo site

> php core/scripts/drupal quick-start standard

And if you want to learn more about this functionality, use its help command

> php core/scripts/drupal quick-start --help


  • Drush make
  • Custom Install Profile
  • Drush site-install
# Install Drupal
> drush make drupal.make
> drush site-install drupal --account-mail=drupal@example.com --account-name=admin --account-pass=123456 --db-url=mysql://root:123456@ --site-mail=service@example.com --site-name=Drupal-Demo

# Install Module
> drush en tracker
# Remove module
> drush pm-uninstall tracker