Apache 服务器和 Nginx 的进程间通信

Inter-process Communication for Apache Server and Nginx

对于Nginx 和Apache httpd 网络服务器,通常在某些模式下存在多个进程。比如有一个master进程,几个worker进程。

这些进程如何相互通信?似乎他们使用文件进行通信。不知道对不对,还需要解释一下。

Nginx 在 nginx 源码中使用 Unix domain sockets to communicate with the workers. You can see them being created and being written to and read from