发布于 1970-01-01 08:00
  • 3 个回答
    • 删除普通文件,以Unix Socket方式运行时,sock文件由php-fpm创建

      2022-11-30 12:54 回答
    • 配置文件不是写着了么,php-fpm会自己生成这个socket文件,并且被master进程所引用

      ; 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 IPv4 addresses 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.
      
      2022-11-30 12:54 回答
    • 我感觉是配置写错了。

      php-fpm.conf

      listen = /dev/shm/php-fcgi.sock
      listen.owner = www
      listen.group = www
      listen.mode = 0660

      nginx.conf

      fastcgi_pass unix:/dev/shm/php-fcgi.sock;
      2022-11-30 12:54 回答
    撰写答案
    今天,你开发时遇到什么问题呢?
    立即提问
    PHP1.CN | 中国最专业的PHP中文社区 | PNG素材下载 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
    Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有