vim /etc/nginx/conf.d/default.conf
修改php相关配置如下:
location ~ .php$ {
root /usr/share/nginx/html;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
vim /etc/php/7.3/fpm/pool.d/www.conf
修改监听方式为127.0.0.1:9000
;listen = /run/php/php7.3-fpm.sock
listen = 127.0.0.1:9000
重启服务
systemctl restart php7.3-fpm
systemctl restart nginx