workerman已经运行了,但是换了服务器之后。就经常断开。几分钟就断开了
Stack trace:
0 /home/wwwroot/hldqbusi666/application/worker/controller/Start.php(38): Redis->brPop(Array, 60)
1 /home/wwwroot/hldqbusi666/vendor/workerman/workerman/Worker.php(2393): app\worker\controller{closure}(Object(Workerman\Worker))
2 /home/wwwroot/hldqbusi666/vendor/workerman/workerman/Worker.php(1541): Workerman\Worker->run()
3 /home/wwwroot/hldqbusi666/vendor/workerman/workerman/Worker.php(1371): Workerman\Worker::forkOneWorkerForLinux(Object(Workerman\Worker))
4 /home/wwwroot/hldqbusi666/vendor/workerman/workerman/Worker.php(1345): Workerman\Worker::forkWorkersForLinux()
5 /home/wwwroot/hldqbusi666/vendor/workerman/workerman/Worker.php(1675): Workerman\Worker::forkWorkers()
6 /home/wwwroot/hldqbusi666/vendor/workerman/workerman/Worker.php(1624): Workerman\Worker::monitorWorkersForLinux()
7 /home/wwwroot/hldqbusi666/vendor/workerman/workerman/Worker.php(548): Workerman\Worker::monitorWorkers()
8 /home/wwwroot/hldqbusi666/application/worker/controller/Start.php(61): Workerman\Worker::runAll()
9 /home/wwwroot/hldqbusi666/thinkphp/library/think/Loader.php(666): include('/home/wwwroot/h...')
10 /home/wwwroot/hldqbusi666/thinkphp/library/think/Loader.php(85): think__include_file('/home/wwwroot/h...')
11 [internal function]: think\Loader::autoload('app\worker\cont...')
12 [internal function]: spl_autoload_call('app\worker\cont...')
13 /home/wwwroot/hldqbusi666/thinkphp/library/think/Loader.php(478): class_exists('app\worker\cont...')
14 /home/wwwroot/hldqbusi666/thinkphp/library/think/App.php(580): think\Loader::controller('start', 'controller', false, 'Error')
15 /home/wwwroot/hldqbusi666/thinkphp/library/think/App.php(456): think\App::module(Array, Array, true)
16 /home/wwwroot/hldqbusi666/thinkphp/library/think/App.php(139): think\App::exec(Array, Array)
17 /home/wwwroot/hldqbusi666/thinkphp/start.php(19): think\App::run()
18 /home/wwwroot/hldqbusi666/server.php(6): require('/home/wwwroot/h...')
19 {main}
2021-09-07 17:42:18 pid:8214 Worker[8214] process terminated
2021-09-07 17:42:18 pid:19391 worker[none:8214] exit with status 64000
2021-09-07 17:42:20 pid:8527 RedisException: read error on connection to 127.0.0.1:6379 in /home/wwwroot/hldqbusi666/application/worker/controller/Start.php:38
2个回答
年代过于久远,无法发表回答
redis报错了
redis没有启用