$worker = new Worker('tcp://0.0.0.0:9090'); //启动1个进程对外提供服务 $worker -> count = 1; Worker::$daemonize = true; Worker::$stdoutFile = '/tmp/stdout.log'; //增加一个属性 $worker -> uidConnections = array();//c++客户端信息...
$worker = new Worker('tcp://0.0.0.0:9090'); //http协议 //启动1个进程对外提供服务 $worker -> count = 1; Worker::$daemonize = true; Worker::$stdoutFile = '/tmp/stdout.log'; //增加一个属性 $worker -> uidConnections = array(); ...