协程报错 WARNING swManager_check_exit_status ?
来源:6-6 Swoole 协程精讲-基于2.x(上)
![](http://img1.sycdn.imooc.com/user/5aa9e4b80001015803890389-100-100.jpg)
弱弱小乖乖
2018-04-06
$http = new swoole_http_server("0.0.0.0", 8811); $http->on('request', function ($request, $response) { // 获取redis里面的key内容,然后浏览器输出 $redis = new \Swoole\Coroutine\Redis('zxc36885158'); $redis->connect('127.0.0.1', 6379); $value = $redis->get($request->get['key']); $response->header("Content-Type", "text/plain"); $response->end($value); }); $http->start();
浏览器运行就报错了,
WARNING swManager_check_exit_status: worker#0 abnormal exit, status=0, signal=11
什么原因呢?
写回答
1回答
-
singwa
2018-04-07
您的php swoole 是哪个版本的?
00
相似问题