通过 docker 获取 php-fpm 失败

问题描述

在创建 LAMP 服务器期间出现问题。 我试图直接向 php-fpm 发出请求,但没有得到任何结果:

wget localhost:9000/index.php
--2021-01-12 10:20:19--  http://localhost:9000/index.php
Resolving localhost (localhost)... 127.0.0.1
Connecting to localhost (localhost)|127.0.0.1|:9000... connected.
HTTP request sent,awaiting response... No data received.
Retrying.

docker ps
CONTAINER ID   IMAGE                 COMMAND                  CREATED              STATUS              PORTS                    NAMES
f72d94397adc   rabbit_consumer-app   "docker-php-entrypoi…"   About a minute ago   Up About a minute   0.0.0.0:9000->9000/tcp   rabbit-consumer

docker logs f72d94397adc
[12-Jan-2021 08:19:22] NOTICE: [pool www] 'user' directive is ignored when FPM is not running as root
[12-Jan-2021 08:19:22] NOTICE: [pool www] 'group' directive is ignored when FPM is not running as root
[12-Jan-2021 08:19:22] NOTICE: fpm is running,pid 1
[12-Jan-2021 08:19:22] NOTICE: ready to handle connections

docker-compose.yml:https://gist.github.com/halimonalexander/3b3f4e97821d19d69367291d70ca2533 Dockerfile:https://gist.github.com/halimonalexander/6f197d092f4f2cd47b94a3b07595f49b

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...