懒子汉

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

随笔分类 -  Swoole

摘要:编译安装swoole:cd && wget https://github.com/swoole/swoole-src/archive/1.8.6-stable.tar.gz && tar -zxvf 1.8.6-stable.tar.gz && cd swoole-src-1.8.6-stable/ 阅读全文
posted @ 2016-06-17 11:05 懒子汉 阅读(435) 评论(0) 推荐(0)

摘要:<?php/*Redis可真能坑爷,原先的设计用redis保存临时数据,可到了实际应用(实际上也就是几十个人同时用),总是出现莫名其妙的问题,最常见的就是读不出数据来,调试了好多天,那问题还是偶尔出现(也不是一直有,偶尔读不到),幸好这段时间接触swoole,发现有swoole_table这么个好东 阅读全文
posted @ 2016-05-27 16:11 懒子汉 阅读(2574) 评论(0) 推荐(0)

摘要:public function test() { $count = []; $count[] = ['key' => 'name', 'type' => 'string', 'len' => 50]; $count[] = ['key' => 'title', 'type' => 'string', 阅读全文
posted @ 2016-05-26 20:54 懒子汉 阅读(312) 评论(0) 推荐(0)

摘要:client.html: <!doctype html><html><head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no"/ 阅读全文
posted @ 2016-05-26 16:07 懒子汉 阅读(806) 评论(0) 推荐(0)