当前的运行环境为,PHP7.2.2以 FastCGI 模式运行,默认端口为:9000,Nginx1.15.6
打开nginx配置文件
vi /usr/local/nginx/conf/nginx.conf
具体位置根据安装情况可能会有所差异
location ~ \.php {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
include fastcgi.conf;
}
当前的运行环境为,PHP7.2.2以 FastCGI 模式运行,默认端口为:9000,Nginx1.15.6
打开nginx配置文件
vi /usr/local/nginx/conf/nginx.conf
具体位置根据安装情况可能会有所差异
location ~ \.php {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
include fastcgi.conf;
}
转载于:https://www.cnblogs.com/yellowgold/p/11173976.html