Drupal – Install

     发布在:PHP      浏览:15      评论:0 条评论

Composer

# 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

Manually

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

# 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@127.0.0.1/drupal8_drupal --site-mail=service@example.com --site-name=Drupal-Demo

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