我已经用这种方式在远程服务器上安装了新的D8,https://github.com/drupal-composer/drupal-project。我从GitHub中提取了文件,并运行了“composer”来获取所有供应商文件,包括本地Drush (/供应商/drush/),当我在根目录(或'/web')上运行'drush状态‘或'drush核心-状态’时:
vagrant@drupalvm8:/var/www/drupalvm/test8$ drush core-status
PHP Warning: pcntl_exec(): Error has occurred: (errno 8) Exec format error in /usr/local/share/drush/includes/startup.inc on line 412
Warning: pcntl_exec(): Error has occurred: (errno 8) Exec format error in /usr/local/share/drush/includes/startup.inc on line 412
Error has occurred executing the Drush script found at /var/www/drupalvm/test8/vendor/bin/drush.launcher (errno 8) Exec format error发布于 2017-08-10 20:57:46
在最近的版本(8.1.5和更高版本)中,通过重构代码是如何使用钻孔问题类的,这个Phar已经得到了修正。
下面是如何使用phar安装Drush的更新步骤(如install.md所示):
# Download latest stable release using the code below or browse to github.com/drush-ops/drush/releases.
php -r "readfile('http://files.drush.org/drush.phar');" > drush
# Or use our upcoming release: php -r "readfile('http://files.drush.org/drush-unstable.phar');" > drush
# Test your install.
php drush core-status
# Make `drush` executable as a command from anywhere. Destination can be anywhere on $PATH.
chmod +x drush
sudo mv drush /usr/local/bin
# Optional. Enrich the bash startup file with completion and aliases.
drush init或者用以下一条线:
sudo install <(curl http://files.drush.org/drush.phar) /usr/local/bin/drushhttps://drupal.stackexchange.com/questions/216116
复制相似问题