V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
Dcynsd
V2EX  ›  问与答

使用 Docker 部署 PHP 项目,经常 PHP -FPM 连接超时?

  •  
  •   Dcynsd · Aug 14, 2023 · 894 views
    This topic created in 995 days ago, the information mentioned may be changed or developed.

    项目使用 Docker 部署了一个容器,容器里面包含了 Nginx 和 PHP-FPM ,运行了一段时间后,Nginx 就会报错如下:

    upstream timed out (110: Operation timed out) while reading response header from upstream, client: 10.234.56.57, server: localhost, request: "POST /xxx/xxx/xxx HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000"
    

    重启容器就会正常,可是跑个一段时间后,又会报错,实在没找到是啥原因。

    2 replies    2023-08-14 17:39:25 +08:00
    Rache1
        1
    Rache1  
       Aug 14, 2023
    FPM 打开慢日志记录
    julyclyde
        2
    julyclyde  
       Aug 14, 2023
    把 buffered output 关闭试试
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2522 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 05:21 · PVG 13:21 · LAX 22:21 · JFK 01:21
    ♥ Do have faith in what you're doing.