Nginx   发布时间:2022-05-11  发布网站:大佬教程  code.js-code.com
大佬教程收集整理的这篇文章主要介绍了nginx php-fpm =找不到文件大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。

当我尝试访问info.@R_450_11161@我得到一个文件找不到.错误.

我试过一些教程没有用.

CONfigS:
默认:

@H_607_9@server { listen 80; listen [::]:80 default ipv6only=on; server_name localhost; LOCATIOn / { root /var/www; index index.html index.htm index.@R_450_11161@; } # pass the @R_450_11161@ scripts to FastCGI server listening on 127.0.0.1:9000 # LOCATIOn ~ \.php${ fastcgi_pass 127.0.0.1:7777; fastcgi_index index.@R_450_11161@; fastcgi_param SCRIPT_FILename /usr/share/Nginx/html$fastcgi_script_name; fastcgi_buffers 256 128k; #fastcgi_buffer_size 16k; #fastcgi_busy_buffers_size 256k; fastcgi_connect_timeout 300s; fastcgi_send_timeout 300s; fastcgi_read_timeout 300s; include fastcgi_params; } }

有什么问题?

最佳答案
如果那个info.@R_450_11161@在/ var / www中,那么指示fast_cgi寻找是错误的

@H_607_9@/usr/share/Nginx/html/info.@R_450_11161@;

对于html和@R_450_11161@使用相同的根.此外,根和索引参数应该在特定位置之外,除非非常具体的用途.

@H_607_9@server { listen 80; listen [::]:80 default ipv6only=on; server_name localhost; root /var/www; index index.html index.htm index.@R_450_11161@; #pass the @R_450_11161@ scripts to FastCGI server listening on 127.0.0.1:9000 LOCATIOn ~ \.php${ fastcgi_pass 127.0.0.1:7777; fastcgi_index index.@R_450_11161@; fastcgi_param SCRIPT_FILename $document_root$fastcgi_script_name; fastcgi_buffers 256 128k; fastcgi_connect_timeout 300s; fastcgi_send_timeout 300s; fastcgi_read_timeout 300s; include fastcgi_params; } }

不用说,您仍然需要确保您的@R_450_11161@-fpm服务正在7777端口上侦听.通常的情况是让它在端口9000上侦听.

大佬总结

以上是大佬教程为你收集整理的nginx php-fpm =找不到文件全部内容,希望文章能够帮你解决nginx php-fpm =找不到文件所遇到的程序开发问题。

如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。
标签: