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 ERROR: failed to retrieve TCP_INFO for socket: Protocol not available (92)
done
软件安装都正常,就是php启动的时候会包这个错,不过不影响使用。就是php-fpm.log文件每隔一秒就会输出一个错误.
ERROR: failed to retrieve TCP_INFO for socket: Protocol not available (92)
ERROR: failed to retrieve TCP_INFO for socket: Protocol not available (92)
ERROR: failed to retrieve TCP_INFO for socket: Protocol not available (92)
ERROR: failed to retrieve TCP_INFO for socket: Protocol not available (92)
ERROR: failed to retrieve TCP_INFO for socket: Protocol not available (92)
ERROR: failed to retrieve TCP_INFO for socket: Protocol not available (92)
ERROR: failed to retrieve TCP_INFO for socket: Protocol not available (92)
ERROR: failed to retrieve TCP_INFO for socket: Protocol not available (92)
ERROR: failed to retrieve TCP_INFO for socket: Protocol not available (92)
ERROR: failed to retrieve TCP_INFO for socket: Protocol not available (92)
ERROR: failed to retrieve TCP_INFO for socket: Protocol not available (92)
ERROR: failed to retrieve TCP_INFO for socket: Protocol not available (92)
php-fpm.conf里面的日志配置注释掉了还是会一直不断的报这个错误
pid = /usr/local/php/var/run/php-fpm.pid
; error_log = /usr/local/php/var/log/php-fpm.log
; log_level = notice
有什么方法能停掉这个日志记录吗? 不然日志文件要时常清理
lnmp的php-fpm默认使用socket,应该不报错的,你把socket改成了端口了吗?
wsl问题比较多真真的不如用个虚拟机
日志可以将日志路径改成 /dev/null licess 发表于 2019-6-13 20:21
lnmp的php-fpm默认使用socket,应该不报错的,你把socket改成了端口了吗?
wsl问题比较多真真的不如用个虚 ...
pid = /usr/local/php/var/run/php-fpm.pid
error_log = /dev/null
log_level = notice
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.loglisten改成端口了 nginx那边也改了 访问都正常 日志按你说的改了以后就没有错误输出了 但是启动php的时候还是会报一下错误
页:
[1]