search

Home  >  Q&A  >  body text

python命令行连接redis疑问

如图,打开python交互式命令行,发起一个redis请求,命令行进程的文件描述符列表里就有一个【闪红】的socket连接,这是表示socket无效的意思吗?为什么会这样呢?

高洛峰高洛峰2889 days ago403

reply all(1)I'll reply

  • 黄舟

    黄舟2017-04-18 09:32:58

    This link is used to return the socket with ID number 197539023 to the system. Although the resource of this socket exists, it does not appear in the file system. You cannot access it through the usual link method, so it is marked as broken.

    You can view more information through lsof | grep 197539023.

    reply
    0
  • Cancelreply