VPS侦探论坛

 找回密码
 注册
查看: 4136|回复: 4

求助:LNMP下安装Drush

[复制链接]
发表于 2017-1-21 01:10:27 | 显示全部楼层 |阅读模式

我想安装Drush来管理Drupal网站,按照Drush官网说明(http://docs.drush.org/en/master/install/),我执行以下命令安装
  1. php -r "readfile('https://s3.amazonaws.com/files.drush.org/drush.phar');" > drush
复制代码


结果总是出现PHP错误。

请问有在LNMP下成功安装Drush的吗?请分享以下成功安装经验,谢谢!
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2017-1-21 08:52:22 | 显示全部楼层


drush安装很简单,什么错误信息都不发,没法猜测
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2017-1-25 12:37:07 | 显示全部楼层

运行以上命令,执行了很长时间才结束,最后什么也没有显示。我执行一下命令查看安装是否成功:
  1. php drush core-status
复制代码


得到以下出错信息:


PHP Fatal error:  Uncaught exception 'PharException' with message 'phar "/root/drush" has a broken signature' in /root/drush:9
Stack trace:
#0 /root/drush(9): Phar::mapPhar('drush.phar')
#1 {main}
  thrown in /root/drush on line 9
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2017-1-25 19:56:19 | 显示全部楼层

回复 3# 的帖子




不了解这个,建议去drush他们网站反馈看看
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2017-3-19 11:59:23 | 显示全部楼层

git clone https://github.com/drush-ops/drush.git /usr/local/src/drush
cd /usr/local/src/drush
git checkout master  #or whatever version you want.
ln -s /usr/local/src/drush/drush /usr/bin/drush
composer install
drush --version

军哥运维代购:http://shop63846532.taobao.com/

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-9-27 15:32 , Processed in 0.026486 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表