From fb647853f55b1dc8ce7e1c616d32863a241aebcb Mon Sep 17 00:00:00 2001 From: sugar1569 Date: Fri, 22 Apr 2022 16:52:00 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E7=A8=8B=E5=BA=8F=E7=9B=AE=E5=BD=95?= =?UTF-8?q?=E3=80=91time.pid=20=E5=92=8Cworkerman.pid=20=E7=94=9F=E6=88=90?= =?UTF-8?q?=E7=9B=AE=E5=BD=95=E4=BF=AE=E6=94=B9=E5=88=B0runtime=E7=9B=AE?= =?UTF-8?q?=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- crmeb/crmeb/command/Timer.php | 2 +- crmeb/crmeb/command/Workerman.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crmeb/crmeb/command/Timer.php b/crmeb/crmeb/command/Timer.php index 5fc17e732..5b1a94bff 100644 --- a/crmeb/crmeb/command/Timer.php +++ b/crmeb/crmeb/command/Timer.php @@ -57,7 +57,7 @@ class Timer extends Command protected function execute(Input $input, Output $output) { $this->init($input, $output); - Worker::$pidFile = app()->getRootPath().'timer.pid'; + Worker::$pidFile = app()->getRootPath().'runtime/timer.pid'; $task = new Worker(); $task->count = 1; event('Task_6'); diff --git a/crmeb/crmeb/command/Workerman.php b/crmeb/crmeb/command/Workerman.php index 82cf6556b..4eb8712d2 100644 --- a/crmeb/crmeb/command/Workerman.php +++ b/crmeb/crmeb/command/Workerman.php @@ -102,7 +102,7 @@ class Workerman extends Command } else { $context = []; } - Worker::$pidFile = app()->getRootPath() . 'workerman.pid'; + Worker::$pidFile = app()->getRootPath() . 'runtime/workerman.pid'; if (!$server || $server == 'admin') { var_dump('admin'); //创建 admin 长连接服务