/**
* 初始化
*/
private function __construct($ip, $port)
{
register_shutdown_function(array($this, 'handleFatal'));
$http = new \swoole_http_server($ip, $port);
$http->set(\Config\Server::getWebServerConfig());
$http->on('WorkerStart', array($this, 'onWorkerStart'));
$http->on('request', array($this, 'onRequest'));
$http->on('start', array($this, 'onStart'));
$http->start();
}