在啟動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