1、根据端口号,找到PCB/ADDR
dc-test1<root>netstat -Aan|grep 7013
#PCB/ADDR Proto Recv-Q Send-Q Local Address Foreign Address (state)
f100060003614398 tcp 0 0 127.0.0.1.7013 *.* LISTEN
f10006000077ab98 tcp 0 0 172.16.10.10.7013 *.* LISTEN
2、用rmsock命令,找到进程id。
dc-test1<root>rmsock f100060003614398 tcpcb
The socket 0x3614008 is being held by proccess 974920 (java).
3、用ps命令查看进程情况。
dc-test1<root>ps -ef|grep 974920
oracle 974920 1 0 Dec 17 - 14:33 /usr/java6_64/bin/java -Xms256m -Xmx512m -da -Dplatform.home=/oradata/osbok/wlserver_10.3 -Dwls.home=/oradata/osbok/wlserver_10.3/server -Dweblogic.home=/oradata/osbok/wlserver_10.3/server -Dweblogic.management.discover=true -Dwlw.iterativeDev=false -Dwlw.testConsole=false -Dwlw.logErrorsToConsole= -Dweblogic.ext.dirs=/oradata/osbok/patch_wlw1030/profiles/default/sysext_manifest_classpath:/oradata/osbok/patch_wls1030/profiles/default/sysext_manifest_classpath:/oradata/osbok/patch_cie670/profiles/default/sysext_manifest_classpath:/oradata/osbok/patch_alsb1031/profiles/default/sysext_manifest_classpath -Dweblogic.Name=AdminServer -Djava.security.policy=/oradata/osbok/wlserver_10.3/server/lib/weblogic.policy weblogic.Server
root 1220794 987206 0 21:27:36 pts/1 0:00 grep 974920