84669 person learning
152542 person learning
20005 person learning
5487 person learning
7821 person learning
359900 person learning
3350 person learning
180660 person learning
48569 person learning
18603 person learning
40936 person learning
1549 person learning
1183 person learning
32909 person learning
When configuring PHP monitoring, I saw two ways of writing: One is:
listen = /dev/shm/php-fpm.sock
Another one is:
listen = /dev/shm/php-cgi.sock
That is, php-fpm.sock and php-cgi.sock, which one is better? The php version is 7.0.
php-fpm.sock
php-cgi.sock
小伙看你根骨奇佳,潜力无限,来学PHP伐。
Use whichever one you match, if you are using ngnix + fastcgi,那就用php-cgi.sock;如果是ngnix + php-fpm,那就用php-fpm.sock。当然,fpm的效率要比fastcgi高,因为fpm就是一个fastcgi’s manager.
ngnix + fastcgi
ngnix + php-fpm
fpm
fastcgi
It doesn’t matter what the file name is
Use whichever one you match, if you are using
ngnix + fastcgi
,那就用php-cgi.sock
;如果是ngnix + php-fpm
,那就用php-fpm.sock
。当然,fpm
的效率要比fastcgi
高,因为fpm
就是一个fastcgi
’s manager.It doesn’t matter what the file name is