【Nginx】ngx_event_core_module事件模块

功能:创建连接池,决定使用哪些事件驱动机制,以及初始化将要使用的事件模块

该模块定义了ngx_event_core_commands数组处理其感兴趣的7个配置项

ngx_event_conf_t为该模块定义的用于存储配置项参数的结构体

在Nginx启动过程中还没有fork出worker子进程时,会首先调用ngx_event_core_module模块的ngx_event_module_init方法,而在fork出worker子进程后,每一个worker进程会在调用ngx_event_core_module模块的ngx_event_process_init方法后才会进入正式的工作循环。

ngx_event_core_module模块在启动过程中的主要工作都是在ngx_event_process_init方法中进行的。具体步骤如下:

原文地址:https://www.cnblogs.com/ljygoodgoodstudydaydayup/p/3857848.html