(1)通过进程号查看该进程的网络信息
[root@hadoop100 ~]# netstat -nlp | grep 2747
unix 2 [ ACC ] STREAM LISTENING 17368 2747/bonobo-activat /tmp/orbit-gdm/linc-abb-0-2b237ae35f6
(2)查看某端口号是否被占用
[root@hadoop100 ~]# netstat -nlp | grep 17368
unix 2 [ ACC ] STREAM LISTENING 17368 2747/bonobo-activat /tmp/orbit-gdm/linc-abb-0-2b237ae35f6