shell 跑yii框架下的脚本

脚本文件一般放在yii框架console文件夹下面

登录到Shell,切换到项目在shell中的文件夹下面

下面是举例子

我的是:cd /mnt

cd test1-haiwaiuni/

运行

./yii ci-yun/parse  /mnt/test1-haiwaiuni/console/wxid_6xchj23regwi22.txt

其中 brush-test 是console文件夹下的BrushTestController 而index是该控制器下的一个方法,我最终的目的就是运行index而达到我想要的结果。

 

 

 

posted on 2018-10-24 14:24  刷哥  阅读(589)  评论(0编辑  收藏  举报

导航