当前位置: 动力学知识库 > 问答 > 编程问答 >

unix - Meaning of *:* in lsof output

问题描述:

On Solaris (or Unix), running lsof gives me a bunch of lines like this:

java 25375 foo 8161u IPv4 0xfffffeb1f6f523c0 0t0 TCP *:* (IDLE)

But the *:* puzzles me - I was expecting to see something like

hostname1:port1->ipaddress:port2 (IDLE)

What does the *:* mean?

网友答案:

I will quote this from here:

If the Foreign Address is *:* (and, with TCP sockets, the state is LISTEN), a socket is usually waiting for some remote host to send the first data. Typical examples: sshd (waits for somebody to open an ssh connection), apache (waits for somebody to request a web page), cupsd (waits for somebody to send a print job), and dhclient (waits for the DHCP server to send, for example, a lease renewal).

分享给朋友:
您可能感兴趣的文章:
随机阅读: