解決Linux下Oracle Tomcat 8080連接埠衝突

來源:互聯網
上載者:User

  在啟動tomcat的時候提示8080連接埠被佔用,後來經過尋找發現如下結論:

  將oracle與tomcat、jboss等其它佔用8080連接埠的伺服器安裝在一台機器上,會出現8080連接埠被佔用的錯誤

  一、首先檢查8080連接埠的使用方式

  [root@olivenan root]# lsof -i :8080 -n

  COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME

  tnslsnr 1031 oracle 12u IPv4 2013 TCP *:webcache (LISTEN)

  [root@olivenan root]# lsof -i tcp:8080 -n

  COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME

  tnslsnr 1031 oracle 12u IPv4 2013 TCP *:webcache (LISTEN)

  發現8080連接埠被oracle使用,注意lsof命令參數的使用。

  [root@olivenan root]# lsof -i udp:8080 -n

  [root@olivenan root]# lsof -i|grep 8080

  [root@olivenan root]# netstat -tln|grep 8080

  tcp 0 0 0.0.0.0:8080 0.0.0.0:* LISTEN

  [root@olivenan root]#

  二、尋找解決方案

  解決方案一、

  將*.dispatchers='(PROTOCOL=TCP) (SERVICE=orclXDB)'

  修改為#*.dispatchers='(PROTOCOL=TCP) (SERVICE=orclXDB)'

  [oracle@olivenan dbs]$ sqlplus "/as sysdba"

  SQL*Plus: Release 9.2.0.4.0 - Production on Fri Jul 6 10:37:32 2007

  Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.

  Connected to:

  Oracle9i Enterprise Edition Release 9.2.0.4.0 - Production

  With the Partitioning, OLAP and Oracle Data Mining options

  JServer Release 9.2.0.4.0 - Production



聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.