![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Nginx
Acmery_L
d = c++;
展开
-
Nginx 内存池 - 原理解析
Nginx 内存池 - 原理解析Nginx 内存池 - 原理解析Nginx内存池的基本结构小块内存处理大块内存处理释放内存操作集:ngx_pool_cleanup_sNginx内存池操作创建内存池内存申请ngx_palloc_smallngx_palloc_large内存池重置内存释放内存池销毁Nginx 内存池 - 原理解析 Nginx的内存池模块定义在ngx_palloc.h和ngx_palloc.c文件中,其中ngx_palloc.h文件中主要定义了相关的结构体,ngx_palloc.原创 2020-08-07 17:52:12 · 1067 阅读 · 0 评论 -
Ngnix handler模块编写
Ngnix handler模块编写Nginx handler模块编写实现模块功能module.c定义ngx_module变量实现ngx_http_count_module_set实现ngx_http_count_module_handler使用模块Nginx handler模块编写在编写完的模块编译成功后,将会被加载进objs目录下ngx_modules.c文件中的ngx_modules[]数组中。此数组中的模块将被顺序执行。 实现模块功能统计每个客户端的访问次数,并创建页面展示 module原创 2020-07-27 16:10:53 · 130 阅读 · 0 评论