您好,欢迎访问一九零五行业门户网

linux nginx不解析php如何解决

linux nginx不解析php的解决办法:1、查询9000端口是否出于侦听状态;2、查看“php-fpm.conf”文件;3、修改nginx配置为“location ~ \.php$ {fastcgi_pass   unix:/dev/shm/php-cgi.sock;    #127.0.0.1:9000 fastcgi_index  index...”即可。
nginx 不解析php文件 502的解决办法:
安装的nginx默认侦听的是9000端口
查询9000端口是否出于侦听状态
netstat -antp | grep :9000
查询之后发现没有查到,查看php-fpm.conf文件
cat /usr/local/php/etc/php-fpm.conf
修改nginx配置
location ~ \.php$ { fastcgi_pass unix:/dev/shm/php-cgi.sock; #127.0.0.1:9000 fastcgi_index index.php; fastcgi_param script_filename $document_root$fastcgi_script_name; include fastcgi_params;}
linux有哪些版本linux的版本有:deepin、ubuntukylin、manjaro、linuxmint、ubuntu等版本。其中deepin是国内发展最好的linux发行版之一;ubuntukylin是基于ubuntu的衍生发行版;manjaro是基于arch的linux发行版;linuxmint默认的cinnamon桌面类似windows xp简单易用;ubuntu则是以桌面应用为主的linux操作系统。
以上就是linux nginx不解析php如何解决的详细内容。
其它类似信息

推荐信息