VPS侦探论坛

 找回密码
 注册
查看: 206|回复: 2

windows10上的WSL,系统是Ubuntu18.04,php-fpm.log文件一直输出错误!

[复制链接]
发表于 2019-6-13 17:20:55 | 显示全部楼层 |阅读模式


本帖最后由 502360553 于 2019-6-13 17:24 编辑
  1. zzw@DESKTOP-UNTNOIG:~$ sudo /etc/init.d/php-fpm start
  2. Starting php-fpm [13-Jun-2019 17:05:22] ERROR: failed to retrieve TCP_INFO for socket: Protocol not available (92)
  3. done
复制代码

软件安装都正常,就是php启动的时候会包这个错,不过不影响使用。  就是php-fpm.log文件每隔一秒就会输出一个错误.

  1. [13-Jun-2019 17:08:30] ERROR: failed to retrieve TCP_INFO for socket: Protocol not available (92)
  2. [13-Jun-2019 17:08:31] ERROR: failed to retrieve TCP_INFO for socket: Protocol not available (92)
  3. [13-Jun-2019 17:08:32] ERROR: failed to retrieve TCP_INFO for socket: Protocol not available (92)
  4. [13-Jun-2019 17:08:33] ERROR: failed to retrieve TCP_INFO for socket: Protocol not available (92)
  5. [13-Jun-2019 17:08:34] ERROR: failed to retrieve TCP_INFO for socket: Protocol not available (92)
  6. [13-Jun-2019 17:08:35] ERROR: failed to retrieve TCP_INFO for socket: Protocol not available (92)
  7. [13-Jun-2019 17:08:36] ERROR: failed to retrieve TCP_INFO for socket: Protocol not available (92)
  8. [13-Jun-2019 17:08:37] ERROR: failed to retrieve TCP_INFO for socket: Protocol not available (92)
  9. [13-Jun-2019 17:08:38] ERROR: failed to retrieve TCP_INFO for socket: Protocol not available (92)
  10. [13-Jun-2019 17:08:39] ERROR: failed to retrieve TCP_INFO for socket: Protocol not available (92)
  11. [13-Jun-2019 17:08:40] ERROR: failed to retrieve TCP_INFO for socket: Protocol not available (92)
  12. [13-Jun-2019 17:08:41] ERROR: failed to retrieve TCP_INFO for socket: Protocol not available (92)
复制代码

php-fpm.conf里面的日志配置注释掉了还是会一直不断的报这个错误

  1. [global]
  2. pid = /usr/local/php/var/run/php-fpm.pid
  3. ; error_log = /usr/local/php/var/log/php-fpm.log
  4. ; log_level = notice
复制代码

有什么方法能停掉这个日志记录吗?   不然日志文件要时常清理   

美国VPS、VPN、域名代购:http://shop63846532.taobao.com/

发表于 2019-6-13 20:21:34 | 显示全部楼层


lnmp的php-fpm默认使用socket,应该不报错的,你把socket改成了端口了吗?
wsl问题比较多真真的不如用个虚拟机

日志可以将日志路径改成 /dev/null
美国VPS推荐: 遨游主机LinodeLOCVPSKVMLAVPS2EZ搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2019-6-14 08:55:33 | 显示全部楼层

licess 发表于 2019-6-13 20:21
lnmp的php-fpm默认使用socket,应该不报错的,你把socket改成了端口了吗?
wsl问题比较多真真的不如用个虚 ...
  1. [global]
  2. pid = /usr/local/php/var/run/php-fpm.pid
  3. error_log = /dev/null
  4. log_level = notice

  5. [www]
  6. listen = 127.0.0.1:9000
  7. listen.backlog = -1
  8. listen.allowed_clients = 127.0.0.1
  9. listen.owner = www
  10. listen.group = www
  11. listen.mode = 0666
  12. user = www
  13. group = www
  14. pm = dynamic
  15. pm.max_children = 60
  16. pm.start_servers = 30
  17. pm.min_spare_servers = 30
  18. pm.max_spare_servers = 60
  19. pm.max_requests = 1024
  20. pm.process_idle_timeout = 10s
  21. request_terminate_timeout = 100
  22. request_slowlog_timeout = 0
  23. slowlog = var/log/slow.log
复制代码
listen改成端口了   nginx那边也改了    访问都正常    日志按你说的改了以后就没有错误输出了    但是启动php的时候还是会报一下错误  
美国VPS推荐: 遨游主机LinodeLOCVPSKVMLAVPS2EZ搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2019-8-25 12:04 , Processed in 0.080904 second(s), 26 queries .

Powered by Discuz! X3.4

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表