
swoole
迷途大灰狼
这个作者很懒,什么都没留下…
展开
-
swoole源码安装
首先下载swoolehttps://github.com/swoole/swoole-src/releases下载到服务器上wgethttps://github.com/swoole/swoole-src/archive/v4.4.14.tar.gz复制下来之后看到的目录文件安装之前需要对扩展进行编译使用phpize进行编译,phpize一般在php的bi...原创 2019-08-01 13:31:49 · 765 阅读 · 0 评论 -
查看已安装的swoole的版本
方法一php --ri swoole方法二通过phpinfo的方法原创 2019-09-09 13:00:06 · 7047 阅读 · 0 评论 -
swoole学习process记录
http_server.php文件内容use Swoole\Http\Server;$http = new Server("0.0.0.0", 8501);$http->set([ "enable_static_handler"=>true, "document_root"=>"/www/swoole-demo/data", "worker_num...原创 2019-09-10 13:22:22 · 210 阅读 · 0 评论 -
swoole memory table学习记录
这里并没写出全部的操作,只是写了一部分,具体请看文档,需要注意的是,table在内存中创建和使用在脚本执行结束后会 自动释放,也就是说存活时间等同于脚本执行时间$table= new Swoole\table(8);//创建表$table->column('id',$table::TYPE_INT,4);$table->column('name',$table::TY...原创 2019-09-12 12:54:49 · 162 阅读 · 0 评论