代码
就是跑了一个http server
<?php
$http = new swoole_http_server("127.0.0.1", 9501);
$http->on('request', function ($request, $response) {
$response->end("<h1>Hello Swoole. #".rand(1000, 9999)."</h1>");
});
$http->start();
warning
[2018-05-25 15:01:13 @17.0] WARNING swSignalfd_setup: signalfd() failed. Error: Function not implemented[38]
[2018-05-25 15:01:13 *23.0] WARNING swSignalfd_setup: signalfd() failed. Error: Function not implemented[38]
访问localhost,响应也能过来,这个警告对开发没什么影响吧?不懂这个函数干嘛的。
这个问题已经有人在 Swoole 提过 issue。
具体可以去看下 这个问题。