摘要: Swoole 4层生命周期: 1程序全局变量:onStart前创建(在onStart中创建的全局资源对象不能在Worker进程中被使用.onStart与onWorkerStart并行执行),程序运行时常驻内存,在Worker进程间共享。 程序结束(shutdown)时才回收。 2进程全局变量:onW 阅读全文
posted @ 2020-08-26 16:04 pgman 阅读(446) 评论(0) 推荐(0) 编辑