The communication between fpm and nginx php

tcp sock
monitor

Here I is the unit used for communication between the docker and arranged nginx php
Nginx got me a container
And configure the port into the container
 
 

 

Next we find the container nginx.conf,

Then enter nginx.conf, we need to find parameters fastcgi_pass configuration, and here I will change the port 9005, the default is 9000

 

 Then save and exit

The next step is to find www.conf in our directory php

Enter www.conf, change the configuration parameters we listen, the default port is 9000, we configure the port parameters above is 9005, so you want to change the port

The final step is to exit the container, restart, after you visit a success

fpm and above, different parameters of knowledge

fastcgi_pass unix:/run/php/php7.0-fpm.sock;

listen = /run/php/php7.0-fpm.sock

The above two commands for the configuration parameters fpm

Must be noted, are done changing the configuration parameters must be restarted, because it does not restart parameters you change are not affected, it is loaded according to the original parameters, it will restart only after reload

Must be mainly required in the configuration parameters received php, nginx sent from there, but did not receive php, never on both sides of communication, but also look remember

Guess you like

Origin www.cnblogs.com/xingyuchao/p/11009684.html