By admin, 22 一月, 2021

sudo apt install composer

对于Drupal7,运行composer global require drush/drush:7.x,drush会被安装到~/.config/composer/vendor/bin/drush

对于Drupal9,在Drupal9目录下运行composer require drush/drush,drush会被安装到vendor/bin/drush

安装完后创建一个符号链接到/usr/local/bin/drush以方便调用。

参考:https://docs.drush.org/en/7.x/install/

标签