使用composer 安装drush
composer require drush/drush
安装Drush Launcher
wget -O drush.phar https://github.com/drush-ops/drush-launcher/releases/latest/download/drush.phar
配置全局drush
给drush.phar 设置权限
chmod +x drush.phar
移动drush.phar到/usr/local/bin/drush
sudo mv drush.phar /usr/local/bin/drush
这样就可以安装完成了。
评论