docker下nginx+php 7.2
802 ワード
:
docker run -itd -p 9000:9000 -v D:/wwwroot/test/:/var/wwwroot/fym/ php:7.2-fpm /bin/bash
nginx :
location ~ \.php$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
#fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;
fastcgi_param SCRIPT_FILENAME /var/wwwroot/fym/$fastcgi_script_name;
include fastcgi_params;
}
, :
502 Bad Gateway
:
2020/02/04 16:56:59 [error] 30036#31316: *9050 upstream prematurely closed connection while reading response header from upstream, client: 127.0.0.1, server: t6.com, request: "GET /index.php HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "t6.com:8089"
, php-fpm.
,