星期一, 1 二月 2010
Windows 下查看端口被那个程序占用
« 查询Solaris 10运行了多长时间与何时启动 | Main | Windows 中的权限管理的命令行工具SubInACL »
对于服务器,起码开放了那些端口自己要清楚,如果知道了某个端口开放了,但是不知道是那个程序打开的,可使用netstat -anb命令:
Active Connections
Proto Local Address Foreign Address State PID
TCP 0.0.0.0:21 0.0.0.0:0 LISTENING 1304
[inetinfo.exe]
TCP 0.0.0.0:80 0.0.0.0:0 LISTENING 1120
[Apache.exe]
TCP 0.0.0.0:135 0.0.0.0:0 LISTENING 692
RpcSs
[svchost.exe]
TCP 0.0.0.0:445 0.0.0.0:0 LISTENING 4
[System]
TCP 0.0.0.0:1025 0.0.0.0:0 LISTENING 432
[lsass.exe]
TCP 0.0.0.0:1026 0.0.0.0:0 LISTENING 1304
[inetinfo.exe]
TCP 0.0.0.0:1433 0.0.0.0:0 LISTENING 2536
[sqlservr.exe]
TCP 0.0.0.0:2383 0.0.0.0:0 LISTENING 2604
[msmdsrv.exe]
TCP 0.0.0.0:3306 0.0.0.0:0 LISTENING 2624
[mysqld.exe]
TCP 0.0.0.0:3389 0.0.0.0:0 LISTENING 3532
TermService
[svchost.exe]
TCP 127.0.0.1:1031 0.0.0.0:0 LISTENING 3712
[alg.exe]
TCP 127.0.0.1:1434 0.0.0.0:0 LISTENING 2536
[sqlservr.exe]
TCP 192.168.1.11:139 0.0.0.0:0 LISTENING 4
[System]
TCP 192.168.1.11:3389 192.168.1.5:2953 ESTABLISHED 3532
TermService
[svchost.exe]
UDP 0.0.0.0:3456 *:* 1304
[inetinfo.exe]
UDP 0.0.0.0:500 *:* 432
[lsass.exe]
UDP 0.0.0.0:445 *:* 4
[System]
UDP 0.0.0.0:161 *:* 2828
[snmp.exe]
UDP 0.0.0.0:4500 *:* 432
[lsass.exe]
UDP 0.0.0.0:1434 *:* 2848
[sqlbrowser.exe]
UDP 127.0.0.1:123 *:* 772
W32Time
[svchost.exe]
UDP 127.0.0.1:3456 *:* 1304
[inetinfo.exe]
UDP 192.168.1.11:138 *:* 4
[System]
UDP 192.168.1.11:123 *:* 772
W32Time
[svchost.exe]
UDP 192.168.1.11:137 *:* 4
[System]
Active Connections
Proto Local Address Foreign Address State PID
TCP 0.0.0.0:21 0.0.0.0:0 LISTENING 1304
[inetinfo.exe]
TCP 0.0.0.0:80 0.0.0.0:0 LISTENING 1120
[Apache.exe]
TCP 0.0.0.0:135 0.0.0.0:0 LISTENING 692
RpcSs
[svchost.exe]
TCP 0.0.0.0:445 0.0.0.0:0 LISTENING 4
[System]
TCP 0.0.0.0:1025 0.0.0.0:0 LISTENING 432
[lsass.exe]
TCP 0.0.0.0:1026 0.0.0.0:0 LISTENING 1304
[inetinfo.exe]
TCP 0.0.0.0:1433 0.0.0.0:0 LISTENING 2536
[sqlservr.exe]
TCP 0.0.0.0:2383 0.0.0.0:0 LISTENING 2604
[msmdsrv.exe]
TCP 0.0.0.0:3306 0.0.0.0:0 LISTENING 2624
[mysqld.exe]
TCP 0.0.0.0:3389 0.0.0.0:0 LISTENING 3532
TermService
[svchost.exe]
TCP 127.0.0.1:1031 0.0.0.0:0 LISTENING 3712
[alg.exe]
TCP 127.0.0.1:1434 0.0.0.0:0 LISTENING 2536
[sqlservr.exe]
TCP 192.168.1.11:139 0.0.0.0:0 LISTENING 4
[System]
TCP 192.168.1.11:3389 192.168.1.5:2953 ESTABLISHED 3532
TermService
[svchost.exe]
UDP 0.0.0.0:3456 *:* 1304
[inetinfo.exe]
UDP 0.0.0.0:500 *:* 432
[lsass.exe]
UDP 0.0.0.0:445 *:* 4
[System]
UDP 0.0.0.0:161 *:* 2828
[snmp.exe]
UDP 0.0.0.0:4500 *:* 432
[lsass.exe]
UDP 0.0.0.0:1434 *:* 2848
[sqlbrowser.exe]
UDP 127.0.0.1:123 *:* 772
W32Time
[svchost.exe]
UDP 127.0.0.1:3456 *:* 1304
[inetinfo.exe]
UDP 192.168.1.11:138 *:* 4
[System]
UDP 192.168.1.11:123 *:* 772
W32Time
[svchost.exe]
UDP 192.168.1.11:137 *:* 4
[System]
Posted by at 6:59 下午 in 未分类
[Trackback URL for this entry]