drush 学习

command line shell and scripting interface for Drupal.



可以直接从drush官网来学习。

$ drush uli
功能:生成一次性登录链接

举个例子

[hyn@ezijing html]$ cd /
[hyn@ezijing /]$ drush uli
A Drupal installation directory could not be found                   [error]
[hyn@ezijing /]$ ls
bin   data  etc   lib    lost+found  misc  net  proc  sbin     server  sys  usr
boot  dev   home  lib64  media       mnt   opt  root  selinux  srv     tmp  var
[hyn@ezijing /]$ cd var
[hyn@ezijing var]$ ls
account  cvs    ftp    local  lost+found  nis       run    vhosts
cache    db     games  lock   mail        opt       spool  www
crash    empty  lib    log    monit       preserve  tmp    yp
[hyn@ezijing var]$ cd vhosts
[hyn@ezijing vhosts]$ ls
bian-206.tar.gz  fanyuan  qsg206          sql             zz   zzw-206.tar.gz
damo-206.tar.gz  qsg      qsg-206.tar.gz  xmn-206.tar.gz  zzw
[hyn@ezijing vhosts]$ cd qsg
[hyn@ezijing qsg]$ ls
8301
[hyn@ezijing qsg]$ cd 8301
[hyn@ezijing 8301]$ ls
html  private  qsg206  sql
[hyn@ezijing 8301]$ cd html
[hyn@ezijing html]$ ls
api.php                 includes            MAINTAINERS.txt  sites
authorize.php           index.php           misc             themes
backgroundsize.min.htc  INSTALL.mysql.txt   modules          update.php
CHANGELOG.txt           INSTALL.pgsql.txt   profiles         UPGRADE.txt
COPYRIGHT.txt           install.php         quiz.php         user.jpg
cron.php                INSTALL.sqlite.txt  README.txt       web.config
crossdomain.xml         INSTALL.txt         robots.txt       xmlrpc.php
favicon.ico             LICENSE.txt         scripts
[hyn@ezijing html]$ drush uli
http://166.111.108.35:8301/user/reset/1/1396354220/tnTdJc8nBMPHUtWN3PqBuB-XlL0S-OFNqEBj2CzDOsM/login
[hyn@ezijing html]$

直接调用drush uli报错

A Drupal installation directory could not be found                   [error]

我感觉错误的意思是需要drupal 的安装目录,这里没google出来,以后再说

当切换路径到某一时刻时,不知道为什么是这个目录 www 和vhosts不知道有什么区别,总之我猜测是需要在安装目录下使用

[hyn@ezijing html]$ drush uli
http://166.111.108.35:8301/user/reset/1/1396354220/tnTdJc8nBMPHUtWN3PqBuB-XlL0S-OFNqEBj2CzDOsM/login

其它指令等遇到的时候再来补充

  • 1
    点赞
  • 0
    评论
  • 1
    收藏
  • 一键三连
    一键三连
  • 扫一扫,分享海报

©️2021 CSDN 皮肤主题: 大白 设计师:CSDN官方博客 返回首页
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、C币套餐、付费专栏及课程。

余额充值