everfight

任何网络服务的后台进程都会打开一个端口,用于监听接入的请求。
这些正在监听的套接字也和连接的套接字一样,也能被 netstat 列出来。
参数 tnl, 现在我们可以看到处于监听状态的 TCP 端口和连接。

$ netstat -tnl
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 127.0.1.1:53 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN
tcp6 0 0 ::1:631 ::

分类:

技术点:

相关文章:

  • 2021-11-25
  • 2021-12-31
  • 2021-09-05
  • 2021-09-30
  • 2021-11-25
  • 2021-11-22
猜你喜欢
  • 2021-09-30
  • 2021-11-28
  • 2021-11-19
  • 2021-11-20
  • 2021-10-26
  • 2021-12-09
相关资源
相似解决方案