php-fpm安装完成,nginx安装完成
netstap -ntl|grep 9000
发下端口正常开启
iptables -L
返现9000端口已经开放
ps -aux|grep nginx
发下nginx进程正常运行
但是就是静态页面可以访问,php动态页面无法访问,报错'file not found'
最后发现问题,修改nginx.conf
1 | fastcgi_param SCRIPT_FILENAME /scripts $fastcgi_script_name; |
改成
1 | fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; |
一切OK了