VPS侦探论坛
标题:
windows10上的WSL,系统是Ubuntu18.04,php-fpm.log文件一直输出错误!
[打印本页]
作者:
502360553
时间:
2019-6-13 17:20
标题:
windows10上的WSL,系统是Ubuntu18.04,php-fpm.log文件一直输出错误!
本帖最后由 502360553 于 2019-6-13 17:24 编辑
zzw@DESKTOP-UNTNOIG:~$ sudo /etc/init.d/php-fpm start
Starting php-fpm [13-Jun-2019 17:05:22] ERROR: failed to retrieve TCP_INFO for socket: Protocol not available (92)
done
复制代码
软件安装都正常,就是php启动的时候会包这个错,不过不影响使用。 就是php-fpm.log文件每隔一秒就会输出一个错误.
[13-Jun-2019 17:08:30] ERROR: failed to retrieve TCP_INFO for socket: Protocol not available (92)
[13-Jun-2019 17:08:31] ERROR: failed to retrieve TCP_INFO for socket: Protocol not available (92)
[13-Jun-2019 17:08:32] ERROR: failed to retrieve TCP_INFO for socket: Protocol not available (92)
[13-Jun-2019 17:08:33] ERROR: failed to retrieve TCP_INFO for socket: Protocol not available (92)
[13-Jun-2019 17:08:34] ERROR: failed to retrieve TCP_INFO for socket: Protocol not available (92)
[13-Jun-2019 17:08:35] ERROR: failed to retrieve TCP_INFO for socket: Protocol not available (92)
[13-Jun-2019 17:08:36] ERROR: failed to retrieve TCP_INFO for socket: Protocol not available (92)
[13-Jun-2019 17:08:37] ERROR: failed to retrieve TCP_INFO for socket: Protocol not available (92)
[13-Jun-2019 17:08:38] ERROR: failed to retrieve TCP_INFO for socket: Protocol not available (92)
[13-Jun-2019 17:08:39] ERROR: failed to retrieve TCP_INFO for socket: Protocol not available (92)
[13-Jun-2019 17:08:40] ERROR: failed to retrieve TCP_INFO for socket: Protocol not available (92)
[13-Jun-2019 17:08:41] ERROR: failed to retrieve TCP_INFO for socket: Protocol not available (92)
复制代码
php-fpm.conf里面的日志配置注释掉了还是会一直不断的报这个错误
[global]
pid = /usr/local/php/var/run/php-fpm.pid
; error_log = /usr/local/php/var/log/php-fpm.log
; log_level = notice
复制代码
有什么方法能停掉这个日志记录吗? 不然日志文件要时常清理
作者:
licess
时间:
2019-6-13 20:21
lnmp的php-fpm默认使用socket,应该不报错的,你把socket改成了端口了吗?
wsl问题比较多真真的不如用个虚拟机
日志可以将日志路径改成 /dev/null
作者:
502360553
时间:
2019-6-14 08:55
licess 发表于 2019-6-13 20:21
lnmp的php-fpm默认使用socket,应该不报错的,你把socket改成了端口了吗?
wsl问题比较多真真的不如用个虚 ...
[global]
pid = /usr/local/php/var/run/php-fpm.pid
error_log = /dev/null
log_level = notice
[www]
listen = 127.0.0.1:9000
listen.backlog = -1
listen.allowed_clients = 127.0.0.1
listen.owner = www
listen.group = www
listen.mode = 0666
user = www
group = www
pm = dynamic
pm.max_children = 60
pm.start_servers = 30
pm.min_spare_servers = 30
pm.max_spare_servers = 60
pm.max_requests = 1024
pm.process_idle_timeout = 10s
request_terminate_timeout = 100
request_slowlog_timeout = 0
slowlog = var/log/slow.log
复制代码
listen改成端口了 nginx那边也改了 访问都正常 日志按你说的改了以后就没有错误输出了 但是启动php的时候还是会报一下错误
欢迎光临 VPS侦探论坛 (https://bbs.lnmp.com/)
Powered by Discuz! X3.4