Home >Backend Development >PHP Tutorial >nginx event module directive
<span>error_log</span> /var/log/nginx/errors; <span>events</span><span>{</span><span>debug_connection</span><span>192.168</span><span>.1</span><span>.1</span>; <span>}</span>
multi_accept
Specify after nginx gets a new connection , whether to call accept as many times as possible () Get connection
Nginx uses two signals after rtsig mode is enabled. This instruction specifies the first signal number, and the second signal number is the first plus 1
The default value of rtsig_signo is SIGRTMIN+10 (40).
nginx’s event models are as follows
poll - the standard method. It is the compile-time default method if there is no more efficient method for the current platform. You can enable or disable this module using the configuration parameters --with-poll_module
and
kqueue - Efficient method, used in FreeBSD 4.1+, OpenBSD 2.9+, NetBSD 2.0 and MacOS X. Using kqueue on a dual-processor MacOS X system may cause a kernel panic.
epoll - An efficient method, used in Linux kernel version 2.6 and later systems. In some distributions, such as SuSE 8.2, there is a patch to support epoll in the 2.4 kernel.
/dev/poll - Efficient method, used on Solaris 7 11/99+, HP/UX 11.22+ (eventport), IRIX 6.5.15+ and Tru64 UNIX 5.1A+.
eventport - Efficient method, used on Solaris 10. In order to prevent kernel panic problems, it is necessary to install this security patch. Copyright Statement: This article is an original article by the blogger and may not be reproduced without the blogger's permission.
The above introduces the nginx event module instructions, including the relevant content. I hope it will be helpful to friends who are interested in PHP tutorials.