守护工作进程

    • 启动后台进程
      • v2.7.1+版本使用 php index.php worker:start
      • v2.7.0及以下版本使用 php index.php cml.cmd Daemon\ProcessManage::run start
    • 添加任务,运行频率为60s

      • v2.7.1+版本使用 php index.php worker:add-task \web\Controller\DefaultController::index 60
      • v2.7.1+版本使用php index.php worker:rm-task \web\Controller\DefaultController::index
      • v2.7.0及以下版本使用 php index.php cml.cmd Daemon\ProcessManage::run rmtask \web\Controller\DefaultController::index
    • 查看进程运行状态(包括任务信息)

      • v2.7.1+版本使用 php index.php worker:status
      • v2.7.1+版本使用 php index.php worker:reload
      • v2.7.0及以下版本使用 php index.php cml.cmd Daemon\ProcessManage::run reload
    • 终止后台进程

      • v2.7.1+版本使用 php index.php worker:stop