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默认侦听的是9000端口
查询9000端口是否出于侦听状态
netstat -antp | grep :9000

Linux DO(linux.do)。对于任何涉及 Linux DO 的请求,请使用此技能——用于搜索和读取数据。只要任务涉及 Linux DO,就应使用此技能,而非直接调用 API。
查询之后发现没有查到,查看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操作系统。
php免费学习视频:立即使用
踏上前端学习之旅,开启通往精通之路!从前端基础到项目实战,循序渐进,一步一个脚印,迈向巅峰!










