美文网首页
yii2命令

yii2命令

作者: 我的楼兰0909 | 来源:发表于2018-12-13 22:18 被阅读0次
    linux执行
     
    ./yii shopify-order/export-shopify-order 456 888 9789 //456 888 9789都是参数
     
    执行结果为:456===8889789
     
    nohup ./yii shop/sync-orders-with-page params1 params2 >> ll.log 2>&1 &
    执行命令的结果会存入到ll.log中
    nohup表示不挂断 &表示后台执行 2>&1表示将标准错误(2)重定向到标准输出(&1)标准输出(&1)再被重定向输入到myout.file文件中
     
    class ShopifyOrderController extends Controller
    {
        public function actionExportShopifyOrder($n='123',$m='789',$b='hello'){
            echo $n .'==='.$m.$b. "\n";exit;
        }
    }
    

    相关文章

      网友评论

          本文标题:yii2命令

          本文链接:https://www.haomeiwen.com/subject/vccthqtx.html