在win2003 下安装 Drush

Drupal 的Drush 模块是类似Lunix/Unix中Shell的模块,很早就知道这个模块的神奇之处,无奈本人知识浅薄,英文烂的可怜,一直不敢试用,直至今日方才一试,果然不错,现分享一下安装方法。

本机环境请看: win2003配置服务器环境安装 drupal遇到的问题
Drush版本:All-versions-3.0

Drush下载页: http://drupal.org/project/drush

下载后将其解压到D盘

安装Drush之前需要下载安装一些软件:

然后复制 C:\Program Files\GnuWin32\bin\bsdtar.exe 副本并重命名为 tar.exe

接着编辑系统变量增加:

d:\php;d:\drush;C:\Program Files\GnuWin32\bin

PS:我本机的PHP安装在 D:\php

然后用文本编辑工具打开d:\drush\drush.bat

将第3行:

@php.exe "%~dp0drush.php" %*

修改为 :

@php.exe "%~dp0drush.php" %1 %2 %3 %4 %5 %6 %7 %8 %9

保存关闭文件,这样drush就安装完毕了

现在来测试一下:

打开命令提示符,然后转到D盘

Microsoft Windows [版本 5.2.3790]
(C) 版权所有 1985-2003 Microsoft Corp.

C:\Documents and Settings\Administrator>d:

D:\>drush.bat dl cck
Project cck (6.x-2.6) downloaded to D://cck.                           [success]


D:\>

你会在D盘下看到CCK模块已经下载并解压到D盘下了

关于drush的命令你可以使用 drush help 查看帮助

我还发现这篇文章是linux下的指导文章
使用Drush高效的安装和管理Drupal站点

本文参考于 :Installing Drush on Windows

评论

请问如何安装Gzip?

我从这里下载:
http://gnuwin32.sourceforge.net/packages/gzip.htm
如何直接解压吗?

下载.exe包,Md5sum:ff19a6203e8111

下载.exe包,Md5sum:ff19a6203e8111bedff29c3bc150eaf1 这个,下载完直接安装即可。

As a professionalair jordan

As a professionalair jordan on sale sale store,
air jordans for sale become more fashion trendy for jordan fans and clients.
cheap jordan shoes with top leather sdk401146 and full-grain leather upper that in amazing sale among the jordan market! Buy
cool greys for sale on our jordans shoes online store will jordan shoes for cheapnever regret for you more. The high performance, the improve and smooth ride, these
cheap retro 7 jordans is improved in great repuation among the basketball sneakers.Jordans For Sale With the famous rubber outsole and air unit, these Cheap Jordan 3air jordans are bring you foot breathable. We believe you Cheap Authentic Jordanscan enjoy the impact protection, the ultra cushioning of these Jordan 11 for sale

发表新评论

此内容将保密,不会被其他人看见。
  • 自动将网址与电子邮件地址转变为链接。
  • 允许HTML标签:<a> <img> <em> <del> <strong> <cite> <code> <pre> <ul> <ol> <li> <dl> <dt> <dd> <h3> <h4> <h5> <h6>
  • 自动断行和分段。
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>. The supported tag styles are: <foo>, [foo]. PHP source code can also be enclosed in <?php ... ?> or <% ... %>.

更多关於格式化选项的信息

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Enter the characters shown in the image.