linux上檢視埠使用的命令

blueocean926發表於2009-05-20

[root@server ~]# lsof |grep 1521
sendmail 1977 root mem REG 8,2 15216 225096 /usr/lib/sasl2/libcrammd5.so.2.0.19
tnslsnr 3579 oracle 8u IPv4 9264 TCP server:1521 (LISTEN)
tnslsnr 3579 oracle 11u IPv4 30797 TCP server:1521->server:37406 (ESTABLISHED)
oracle 7637 oracle 16u IPv4 30796 TCP server:37406->server:1521 (ESTABLISHED)
oracle 7686 oracle 12u IPv4 30953 TCP server:1521->192.168.111.1:1634 (ESTABLISHED)
oracle 7690 oracle 12u IPv4 30976 TCP server:1521->192.168.111.1:1636 (ESTABLISHED)
rman 7794 oracle 13r FIFO 0,7 31521 pipe
oracle 7800 oracle 14w FIFO 0,7 31521 pipe

[root@server ~]# nmap -p 1521 192.168.111.5

Starting nmap 3.70 ( http://www.insecure.org/nmap/ ) at 2009-04-04 11:06 CST
Interesting ports on server (192.168.111.5):
PORT STATE SERVICE
1521/tcp open oracle

Nmap run completed -- 1 IP address (1 host up) scanned in 0.218 seconds

[@more@]

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/48010/viewspace-1022331/,如需轉載,請註明出處,否則將追究法律責任。

相關文章