1. Daemon
Meaning: Set whether to run in daemon mode
Syntax: Daemon On|off
Default: On
Example: Daemon off;
Note: Do not use the Daemon directive in the production environment (production mode), these options are for development testing only (development mode).
2. debug_points
Meaning: Breakpoint debugging
Syntax: debug_points [Stop|abort]
Default: None
Example: Debug_points stop;
Note: There are assert assertions within Nginx that allow Nginx to interrupt the program to run, stop, or create a core file with the debugger.
3. master_process
Meaning: Set whether the main process is enabled
Syntax: master_process on|off
Default: On
Example: Master_process off;
Note: Do not use the Master_process directive in the production environment (production mode), these options are for development testing only (development mode).
4. Error_log
Meaning: Specifying the error log file
Syntax: Error_log file [Debug|info|notice|warn|error|crit]
Default: ${prefix}/logs/error.log
Example: Error_log/data/nginx/logs/error.log Debug
Note: This command is not available only in test (or development) mode, but when you add the--with-debug parameter at compile time, you can use the additional parameters of the Error_log directive, namely:
Error_log file [Debug_core|debug_alloc|debug_mutex|debug_event|debug_http|debug_imap];
Configuration and deployment of high-performance Web server Nginx (6) Testing common instructions for the main module of the core module