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

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

运行

php think pull_mqtt start -d
PHP

添加新评论