}location / {try_files $uri $uri/ /index
(php|php5)
Web Server啟動時載入FastCGI程序管理器(Apache Module或IIS ISAPI等)FastCGI程序管理器自身初始化,啟動多個CGI直譯器程序(可建多個php-cgi),並等待來自Web Server的連線
S Nov26 0:00 php-fpm: pool wwwgdb –p 30015(gdb) b fcgi_read_request然後透過瀏覽器訪問nginx,nginx轉發到php-fpm的worker上,根據gdb可以列印
準備docker pull mysqldocker pull nginxdocker pull bitnami/php-fpm關鍵命令:docker ps -a # 檢視宿主機部署的所有容器docker exec -it container
conf開啟後的內容
location = /robots