说明你的php文件是由nginx直接处理的,没有向后端的php-fpm之类的进程端口转发。参考一下nginx与php配置的文档
server {
listen 80 default_server;
location ~ .php$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…