php-fpm启动提示Protocol not available (92)该怎么解决呢?

问题:

WSL(ubuntu16)编译安装php7.3(参考)后,fpm开启报这个:

 $ sudo /usr/local/php/sbin/php-fpm                                                                                78 ↵
[04-Aug-2021 09:56:17] ERROR: failed to retrieve TCP_INFO for socket: Protocol not available (92)

解决:

参考早期由apt-get安装的php5.6的fpm的配置,改写

sudo vim /usr/local/php/etc/php-fpm.d/www.conf

[global]
pid = /run/php/php7.3-fpm.pid


[www]
user = www-data
group = www-data

listen = /run/php/php7.3-fpm.sock

listen.owner = www-data
listen.group = www-data

再次启动,解决

sudo /usr/local/php/sbin/php-fpm

你可能感兴趣的:(php-fpm启动提示Protocol not available (92)该怎么解决呢?)