A 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]$
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
其它指令等遇到的时候再来补充