Ubuntu怎样安装Drush

admin 提交于 星期一, 05/18/2015 - 10:07

 

apt-get update

apt-get install curl

curl -sS https://getcomposer.org/installer | php
mv composer.phar /usr/local/bin/composer

ln -s /usr/local/bin/composer /usr/bin/composer

composer global require drush/drush:dev-master

apt-get install git

git clone https://github.com/drush-ops/drush.git /usr/local/src/drush

mv /usr/bin/drush /usr/bin/drush.old

ln -s /usr/local/src/drush/drush /usr/bin/drush

cd /usr/local/src/drush

composer install

drush --version

标签

添加新评论

Restricted HTML

  • 允许的HTML标签:<a href hreflang> <em> <strong> <cite> <blockquote cite> <code> <ul type> <ol start type> <li> <dl> <dt> <dd> <h2 id> <h3 id> <h4 id> <h5 id> <h6 id> <img src>
  • 自动断行和分段。
  • Web page addresses and email addresses turn into links automatically.
CAPTCHA
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.
请输入"Drupal8"