两个端口具有相同的PID

时间:2012-08-28 12:52:10

标签: port pid

我是Java的新手,在我的问题中可能听起来很愚蠢。我在端口8080上安装了Jboss,在端口1521上安装了OracleXETNListener。当我检查命令时,我看到两个端口都使用相同的进程ID,即2908.可以这样吗?此外,当我在Jboss上运行我的应用程序时,它给出了已经在使用的端口的错误。

Active Connections

  Proto  Local Address          Foreign Address        State           PID
  TCP    0.0.0.0:135            LR89PT1Y:0             LISTENING       1000
  TCP    0.0.0.0:371            LR89PT1Y:0             LISTENING       3916
  TCP    0.0.0.0:445            LR89PT1Y:0             LISTENING       4
  TCP    0.0.0.0:1521           LR89PT1Y:0             LISTENING       2908
  TCP    0.0.0.0:3389           LR89PT1Y:0             LISTENING       1544
  TCP    0.0.0.0:4445           LR89PT1Y:0             LISTENING       2112
  TCP    0.0.0.0:49152          LR89PT1Y:0             LISTENING       600
  TCP    0.0.0.0:49153          LR89PT1Y:0             LISTENING       564
  TCP    0.0.0.0:49154          LR89PT1Y:0             LISTENING       680
  TCP    0.0.0.0:49155          LR89PT1Y:0             LISTENING       984
  TCP    0.0.0.0:54570          LR89PT1Y:0             LISTENING       2872
  TCP    0.0.0.0:54587          LR89PT1Y:0             LISTENING       672
  TCP    0.0.0.0:57065          LR89PT1Y:0             LISTENING       3040
  TCP    10.119.52.86:1521      LPDMW01HN4D3BS:54571   ESTABLISHED     2908
  TCP    10.119.52.86:54571     LPDMW01HN4D3BS:1521    ESTABLISHED     2872
  TCP    10.119.52.86:57493     sindprmpsp04:microsoft-ds  ESTABLISHED     4
  TCP    10.119.52.86:64337     d050876bc02:http       CLOSE_WAIT      1444
  TCP    10.119.64.250:139      LR89PT1Y:0             LISTENING       4
  TCP    10.119.64.250:56423    SPTCDI002:59530        ESTABLISHED     7328
  TCP    10.119.64.250:56425    SPTCDI002:59535        ESTABLISHED     7328
  TCP    10.119.64.250:56426    169.77.61.253:5061     ESTABLISHED     4872
  TCP    10.119.64.250:56427    SPTCDI002:59530        ESTABLISHED     7328
  TCP    10.119.64.250:56448    SINDWINP40:microsoft-ds  ESTABLISHED     4
  TCP    10.119.64.250:56460    inprlcfl11:microsoft-ds  ESTABLISHED     4
  TCP    10.119.64.250:56489    inprbcfl01:microsoft-ds  ESTABLISHED     4
  TCP    10.119.64.250:56550    itrhkdcep2:8000        ESTABLISHED     2068
  TCP    10.119.64.250:56663    vsipe0vl134:http       CLOSE_WAIT      4776
  TCP    10.119.64.250:56664    vsipe0vl134:http       CLOSE_WAIT      4776
  TCP    10.119.64.250:56665    vsipe0vl134:http       CLOSE_WAIT      4776
  TCP    10.119.64.250:56696    LR89PT1Y:56697         ESTABLISHED     2872
  TCP    10.119.64.250:56697    LR89PT1Y:56696         ESTABLISHED     2908
  TCP    10.119.64.250:56934    sdecdc1na06:microsoft-ds  ESTABLISHED     4
  TCP    10.119.64.250:56940    gsc-prod:44527         ESTABLISHED     4676
  TCP    10.119.64.250:57018    SINDWINP37:microsoft-ds  ESTABLISHED     4
  TCP    10.119.64.250:57035    169.77.211.185:8443    ESTABLISHED     7220
  TCP    10.119.64.250:57038    169.77.211.185:8443    ESTABLISHED     7220
  TCP    10.119.64.250:57046    169.77.235.249:8443    TIME_WAIT       0
  TCP    10.119.64.250:57047    169.77.235.249:8443    TIME_WAIT       0
  TCP    10.119.64.250:57051    169.77.235.249:8443    TIME_WAIT       0
  TCP    10.119.64.250:57057    169.77.235.249:8443    ESTABLISHED     9832
  TCP    10.119.64.250:57058    169.77.235.249:8443    ESTABLISHED     9832
  TCP    10.119.64.250:57060    169.77.235.249:8443    ESTABLISHED     9832
  TCP    10.119.64.250:57061    169.77.235.249:8443    ESTABLISHED     7536
  TCP    10.119.64.250:57063    proxybc270park:http    TIME_WAIT       0
  TCP    10.119.64.250:57064    LR89PT1Y:57050         TIME_WAIT       0
  TCP    10.119.64.250:59542    SPTCMX005:55813        ESTABLISHED     7328
  TCP    10.119.64.250:59544    SPTCDI001:59530        ESTABLISHED     4872
  TCP    10.119.64.250:63268    SPTCDI002:59535        ESTABLISHED     4872
  TCP    127.0.0.1:5152         LR89PT1Y:0             LISTENING       2440
  TCP    127.0.0.1:8080         LR89PT1Y:0             LISTENING       2908
  TCP    127.0.0.1:54568        LR89PT1Y:0             LISTENING       2908
  TCP    127.0.0.1:62522        LR89PT1Y:0             LISTENING       1508

1 个答案:

答案 0 :(得分:0)

似乎OracleXETNSListener也使用端口8080,因此进程ID用于侦听器。当JBoss尝试启动时,它无法绑定到8080端口。

要更改OracleXETNSListenr端口,请按照以下说明操作:http://hodentekhelp.blogspot.be/2008/08/my-oracle-10g-xe-is-on-port-8080-can-i.html