
swoole
文章平均质量分 78
佐佐的佐
老婆最大,代码第二
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
【swoole-安装】源码方式
参考:https://www.w3cschool.cn/swoole/swoole-install.html centos7.2 \php7.2 \ gcc4.8 下载源码地址: https://github.com/swoole/swoole-src/releases 下载源代码包后,在终端进入源码目录,执行下面的命令进行编译和安装 cd swoole phpize ./config...原创 2019-08-21 17:36:38 · 160 阅读 · 0 评论 -
【swoole】两种方式创建http服务
在这里简述swoole两种API编写简单HTTP服务器。 swoole_server 使用swoole_server API,构建HTTP服务器,4个步骤: 构建Server对象 设置运行时参数 注册事件回调函数 启动服务器 直接代码体现,新建server.php: <?php //1.构建Server对象 $serv = new swoole_server("0.0.0....原创 2019-09-11 15:14:26 · 741 阅读 · 0 评论