Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

Nginx core module


May 23, 2021 Nginx Getting started


Table of contents


Core module

The startup module for Nginx

The startup module starts with the Nginx process and does a series of initializations, starting with the main function at src/core/nginx.c source code:

  • Initialization of time, rules, error logs, ssl, etc
  • Read into the command line argument
  • OS-related initialization
  • Read in and parse the configuration
  • The core module is initialized
  • Create a variety of temporary files and directories
  • Create shared memory
  • Open the port of the listen
  • All modules are initialized
  • Start the worker process