如何找出正在使用某个端口的服务?

Rus*_*rry 12 services windows-server-2008 port

特别是端口 22。我在仅运行 IIS的Windows Server 2008机器上安装了 freeSSHd 。当我尝试启动 SSH 服务时,它告诉我该端口已被使用。如何找出使用此端口的服务?

Joh*_*n T 19

netstat -b在命令提示符中也将起作用。Sysinternals TCPView 基本上是一个更漂亮的 GUI 版本,netstat是 Windows 自带的工具。

示例输出:

活动连接

  原始本地地址外地址状态PID
  TCP 约翰:2817 本地主机:2818 成立 972
  [火狐.exe]

  TCP 约翰:2818 本地主机:2817 成立 972
  [火狐.exe]

  TCP 约翰:2821 本地主机:2822 成立 972
  [火狐.exe]

  TCP 约翰:2822 本地主机:2821 成立 972
  [火狐.exe]

  TCP 约翰:3177 peak-colo-196-219.peak.org:http 建立 972
  [火狐.exe]

  TCP john:3182 peak-colo-196-219.peak.org:http ESTABLISHED 972
  [火狐.exe]

  TCP 约翰:2879 67.69.247.70:http CLOSE_WAIT 972
  [火狐.exe]

  TCP 约翰:2880 67.69.247.70:http CLOSE_WAIT 972
  [火狐.exe]

  TCP 约翰:2881 67.69.247.70:http CLOSE_WAIT 972
  [火狐.exe]

  TCP 约翰:2882 67.69.247.70:http CLOSE_WAIT 972
  [火狐.exe]

  TCP 约翰:2883 67.69.247.70:http CLOSE_WAIT 972
  [火狐.exe]

  TCP 约翰:2884 67.69.247.70:http CLOSE_WAIT 972
  [火狐.exe]


ara*_*orn 15

Sysinternals TCPView将显示正在使用的 TCP/UDP 端口以及正在使用它们的进程。

替代文字