Article Title: resolve the conflict between OracleTomcat8080 ports in Linux. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
When tomcat is started, the system prompts that port 8080 is occupied. After searching, the following conclusions are found:
Install other servers that use port 8080, such as oracle, tomcat, and jboss, on one machine. The error 8080 port is occupied.
I. first check the usage of port 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)
It is found that port 8080 is used by oracle. Pay attention to the use of lsof command parameters.
[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] #
2. search for solutions
Solution 1,
Set *. dispatchers = '(PROTOCOL = TCP) (SERVICE = orclXDB )'
Change to # *. 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,200 2, Oracle Corporation. All rights reserved.
Connected:
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
SQL> shutdown immediate
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> create spfile from pfile;
File created.
SQL> startup
ORACLE instance started.
Total System Global Area 236000356 bytes
Fixed Size 451684 bytes
Variable Size 201326592 bytes
Database Buffers 33554432 bytes
Redo Buffers 667648 bytes
Database mounted.
Database opened.
SQL> exit
[Root @ olivenan root] # lsof-I: 8080-n
[Root @ olivenan root]
Result port 8080 is stopped.
[1] [2] Next page