如何找到该应用程序使用了我的端口? [关闭]

问题描述 投票:75回答:4

我无法启动GlassFish的,因为它一直显示此错误信息:

SEVERE: Shutting down v3 due to startup exception : No free port within range: 8080=com.sun.enterprise.v3.services.impl.monitor.MonitorableSelectorHandler@ed7d1

我如何才能找到哪些应用程序正在使用Windows Vista上的什么端口?我一直在使用NMAP zenmap使用以下目标的尝试:

http://127.0.0.1:8080

但我得到的是这样的:

Starting Nmap 5.51 ( http://nmap.org ) at 2011-08-05 12:05 Central Daylight Time

NSE: Loaded 57 scripts for scanning.

Read data files from: C:\Program Files\Nmap
Nmap done: 0 IP addresses (0 hosts up) scanned in 4.55 seconds
           Raw packets sent: 0 (0B) | Rcvd: 0 (0B)
WARNING: No targets were specified, so 0 hosts scanned.
windows port windows-vista netstat
4个回答
107
投票

如何netstat的?

http://support.microsoft.com/kb/907980

该命令是netstat -anob

(请确保您运行命令管理)

我得到:

C:\Windows\system32>netstat -anob

活动连接

     Proto  Local Address          Foreign Address        State           PID
  TCP           0.0.0.0:80                0.0.0.0:0                LISTENING         4
 Can not obtain ownership information

  TCP    0.0.0.0:135            0.0.0.0:0              LISTENING       692
  RpcSs
 [svchost.exe]

  TCP    0.0.0.0:443            0.0.0.0:0              LISTENING       7540
 [Skype.exe]

  TCP    0.0.0.0:445            0.0.0.0:0              LISTENING       4
 Can not obtain ownership information
  TCP    0.0.0.0:623            0.0.0.0:0              LISTENING       564
 [LMS.exe]

  TCP    0.0.0.0:912            0.0.0.0:0              LISTENING       4480
 [vmware-authd.exe]

如果你要检查的特定端口,命令使用方法是:netstat的-aon | FINDSTR 8080从同一个路径


10
投票

要查看哪些端口可用你的机器运行:

C:>  netstat -an |find /i "listening"

5
投票

有没有其他应用程序运行它是可能的。这可能是套接字未在这种情况下,你可能要等待一段时间处于TIME_WAIT套接字上到期之前前一交易日正常关闭。不幸的是,你不能到那插座过期使用的端口。如果你能等待一段时间(几分钟)后启动服务器,那么这个问题是不是由于端口8080上运行其他应用程序。


3
投票

在命令提示符下,执行:

netstat -nb
© www.soinside.com 2019 - 2024. All rights reserved.