首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >windows 10上的Drush提供了一个错误命令pm-update需要更高的引导级别来运行。

问windows 10上的Drush提供了一个错误命令pm-update需要更高的引导级别来运行。
EN

Drupal用户
提问于 2016-09-07 06:22:01
回答 1查看 547关注 0票数 2

当我尝试使用drush在我的本地站点上工作时,我会得到以下错误:

命令pm-update需要更高的引导级别才能运行--您需要从功能更强的Drupal环境中调用drush错误来运行此命令。无法执行drush命令“up”。错误 Drush无法启动(引导) Drupal数据库。

我在windows 10上安装了wamp服务器,在windows 10上也安装了composer和drush,我已经正确设置了用户环境路径。我在drupal目录里。我有我当地的drupal网站设置,但我不能让钻孔工作。我一直在网上爬行,只能找到更老的解决方案。

我的drush用户环境路径是C:\Users\Name\AppData\Roaming\Composer\vendor\drush\drush。

编写器的用户环境路径是C:\Users\Name\AppData\Roaming\Composer\vendor\bin。

当我输入钻孔状态时,我会得到

代码语言:javascript
复制
$ drush status
 Drupal version         :  8.1.8
 Site URI               :  http://default
 Database driver        :  mysql
 Database hostname      :  localhost
 Database port          :  3306
 Database username      :  root
 Database name          :  tekopolis
 PHP configuration      :  C:\wamp64\bin\php\php7.0.4\php.ini
 PHP OS                 :  WINNT
 Drush script           :  C:\Users\Anthony\AppData\Roaming\Composer\vendor\drush\drush\drush
 Drush version          :  8.1.3
 Drush temp directory   :  C:\Users\Anthony\AppData\Local\Temp
 Drush configuration    :
 Drush alias files      :
 Drupal root            :  C:\wamp64\www\tekopolis
 Drupal Settings File   :  sites/default/settings.php
 Site path              :  sites/default
 Sync config path       :  sites/default/file/config[...]/sync

有没有人知道如何在没有acquia开发的情况下让drush在windows 10上工作?

EN

回答 1

Drupal用户

发布于 2016-09-11 13:26:20

我的经验是,这类工具在基于Linux的系统上安装起来更容易(此程序到Windows的端口在功能上总是有限的)。幸运的是,Windows 10周年更新包括"Ubuntu on Bash on Windows 10",它允许您在Windows中本地运行基于终端的Linux应用程序和Bash命令。使用此特性,您只需遵循本机教程/安装说明即可。

要在Windows 10中安装这个Bash shell (安装了周年更新之后),您必须启用开发人员模式(转到Settings > Update和Security > For developer )。然后在“开始”菜单中搜索应用程序:“打开或关闭Windows功能”,并使用此应用程序启用"Windows Linux子系统(Beta)“。在“开始”菜单中的“开始”菜单中,计算机的重新启动将在此搜索之后进行,并按照说明执行。一旦完成,您可以使用程序"Bash on Ubuntu on Windows“启动您的Linux shell。

使用apt-get,您可以安装php5 (不要忘记在这里使用sudo ),从这里您可以按照Composer和/或Drush的安装说明进行安装。

票数 1
EN
页面原文内容由Drupal提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://drupal.stackexchange.com/questions/213956

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档