V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
weifan
V2EX  ›  PHP

萌新问下 502 Bad Gateway 问题

  •  
  •   weifan · 2021-03-23 13:45:01 +08:00 · 1662 次点击
    这是一个创建于 1128 天前的主题,其中的信息可能已经有所发展或是发生改变。

    image.png

    image.png

    nginx 配置按网上方法改了都不行😂求大佬帮忙看看 image.png

    俩 php 文件没改 您有一份文件待查收!即刻点击链接获取文件: https://cowtransfer.com/s/345f5245514d4c 或进入 cowtransfer.com 获取,在首页输入取件码:691033 ( 24 小时内有效)

    2 条回复    2021-03-23 14:52:06 +08:00
    xiaochong0302
        1
    xiaochong0302  
       2021-03-23 14:19:07 +08:00   ❤️ 1
    查找 fpm 的配置文件,关注一下 listen 部分的配置

    ```
    ; The address on which to accept FastCGI requests.
    ; Valid syntaxes are:
    ; 'ip.add.re.ss:port' - to listen on a TCP socket to a specific IPv4 address on
    ; a specific port;
    ; '[ip:6:addr:ess]:port' - to listen on a TCP socket to a specific IPv6 address on
    ; a specific port;
    ; 'port' - to listen on a TCP socket to all addresses
    ; (IPv6 and IPv4-mapped) on a specific port;
    ; '/path/to/unix/socket' - to listen on a unix socket.
    ; Note: This value is mandatory.
    ;listen = /run/php/php7.3-fpm.sock
    listen = 127.0.0.1:9000

    ```
    weifan
        2
    weifan  
    OP
       2021-03-23 14:52:06 +08:00
    @xiaochong0302 #1 感谢,之前没找到这个,仔细找了一下,是把另一个配置文件给包含进去。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1491 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 23:56 · PVG 07:56 · LAX 16:56 · JFK 19:56
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.