: This article mainly introduces the nginx architecture and implementation. if you are interested in the PHP Tutorial, refer to it. Master process startup
Worker process startup
Http://nginx.org/
Tengine (Taobao forked nginx version)
Http://www.zhuzhaoyuan.com/
Http://www.aosabook.org/en/nginx.html
Nginx internal [recommended documents]
Http://www.zhuzhaoyuan.com/download/nginx/nginx_internals.pdf
Similar to OC architecture
Each worker process in OC has an independent listener porting, and the listener porting is shared in nginx...
Nginx multi-process mutex accept through the listening fd write lock
Shared-memory inter-process communication
Posted-event
Tcp_nodelay, disable Nagle
Tcp_cork, which is similar to Nagle.
Tcp_defer_accept, receives SYN accept connection immediately
Tcp_quickack, instant ack (usually 200 ms)
Copyright Disclaimer: This article is an original article by the blogger and cannot be reproduced without the permission of the blogger.
The above introduces the nginx architecture and implementation, including some content, and hope to be helpful to friends who are interested in the PHP Tutorial.