tp5命令行 添加守护进程方法

    protected function configure()
    {
        $this->setName('pull_mqtt')
        ->setDescription('Mqtt Subscribe Workerman Service')
        ->addArgument('commands')
        ->addOption('daemon','d',null,'-d');
    }

运行

php think pull_mqtt start -d

仅有一条评论

添加新评论