sock方式配置nginx的php-fpm,如下:
复制代码代码示例:
location ~ \.php$ {
fastcgi_pass unix:/dev/shm/php-fpm.sock; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params; }
配置php-fpm:
复制代码代码示例:
listen = /dev/shm/php-fpm.sock
(责任编辑:IT) |