There are two communication methods between nginx and php-fpm. One is TCP and the other is unix socket. Which one is better?
我想大声告诉你
我想大声告诉你 2017-06-29 10:08:43
0
2
812

Looking at other people’s blogs, it is said that Unix socket is not so stable

我想大声告诉你
我想大声告诉你

reply all (2)
女神的闺蜜爱上我
  • unix socket is suitable for both nginx and php-fpm on the same machine

  • TCP is suitable for nginx and php-fpm not on the same machine

  • TCP communication also requires three handshakes

  • Production environment, if high availability is considered. There will be multiple nginx used with multiple php-fpm

  • I haven’t paid attention to the performance

    黄舟

    Meaning that I have not taken care of this thing, it is all configured and used directly by nginx. It is a unix socket, right

      Latest Downloads
      More>
      Web Effects
      Website Source Code
      Website Materials
      Front End Template
      About us Disclaimer Sitemap
      php.cn:Public welfare online PHP training,Help PHP learners grow quickly!