全局安装 Drush
在安装 Drush 10 之前,你需要确保你的系统已经安装了 Composer,因为 Drush 10 是通过 Composer 安装的。以下是在 Unix/Linux 系统上安装 Drush 10 的步骤:
全局安装 Drush
在安装 Drush 10 之前,你需要确保你的系统已经安装了 Composer,因为 Drush 10 是通过 Composer 安装的。以下是在 Unix/Linux 系统上安装 Drush 10 的步骤:
启用维护模式清除缓存
使用composer 安装drush
composer require drush/drush
安装Drush Launcher
wget -O drush.phar https://github.com/drush-ops/drush-launcher/releases/latest/download/drush.phar
我在给drupal 进行维护时,输入drush sset system.maintenance.mode 0 时出现下列错误。
sh: module:行1: 语法错误: 未预期的文件结尾
sh: `BASH_FUNC_module' 函数定义导入错误
第一步,安装drush
composer require drush/drush
查看drush 是否安装成功
Execute a drush command. Run `drush help [command]` to view command-specific
help. Run `drush topic` to read even more documentation.
Execute a drush command. Run `drush help [command]` to view command-specific help. Run `drush topic` to read even more documentation.