Home  >  Q&A  >  body text

centos - 设置php-fpm使用socket文件的问题

刚编译安装了PHP7,PHP-FPM配置文件中设置监听sock文件

但是启动PHP-FPM的时候提示找不到文件。

PHP7的安装包里带这个文件吗?这个sock文件怎么写? 不行我就新建手写一份,复制到指定位置。

黄舟黄舟2732 days ago907

reply all(1)I'll reply

  • 漂亮男人

    漂亮男人2017-04-27 09:03:25

    Oh, it seems that this file is automatically generated. Modified the configuration file
    listen = /usr/local/php7/var/run/php-fpm.sock

    Then start PHP-FPM, and this file will be automatically generated.

    reply
    0
  • Cancelreply