是不是说明是php-fpm解析php有问题??!!!
其实是nginx和php-fpm 的配置文件里的端口没有设置一致!
/usr/local/etc/nginx/nginx.conf:
#proxy the php scripts to php-fpm
location ~ .*\.php?$ {
try_files $uri = 404;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_intercept_errors on;
fastcgi_split_path_info ^(.+\.php)(.*)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
/private/etc/php-fpm.conf:
listen = 127.0.0.1:9000