启动swoole server服务之后 看不到reactor线程
代码如下:
<?php
$server = new \Swoole\Server('0.0.0.0', 9520);
$server->set([
'work_num' => 3,
'task_work_num' => 3,
]);
$server->on('Start', function ($serv) {
echo 'SWOOLE:'.SWOOLE_VERSION.'服务已启动'.PHP_EOL;
echo 'swoole_cpu_num:'.swoole_cpu_num().PHP_EOL;
});
$server->on('Receive', function ($serv, $fd, $from_id, $data) {
});
$server->on('Task', function ($serv, $task) {
});
$server->on('Finish', function ($serv, $task_id, $data) {
});
$server->start();
fklsjdlkajflkasjkfasjlfjsaklfdjskalfjsalkjdkal