Install Drush on Centos

系统环境:Lnmp, centos 6.4 (64bit)

注意:安装drush依赖pear,所以先检查pear是否已经安装。

参照

  1. Check if PEAR is on the server with: pear version
  2. If PEAR is not on the server then type in: yum install php-pear
  3. Then type in: pear channel-discover pear.drush.org
  4. and then finally: pear install drush/drush
  5. 检查drush version

*** 应该得到最新的drush 版本 (*.*.*)

****我现在安装完毕后得到的是6.2.0

 

另外一种安装模式:

$ sudo wget --quiet -O - http://ftp.drupal.org/files/projects/drush-7.x-5.9.tar.gz | sudo tar -zxf - -C /usr/local/share
$ sudo ln -s /usr/local/share/drush/drush /usr/local/bin/drush
$ sudo drush

 

分类: