Resolving Oracle Tomcat 8080 port conflicts under Linux

Source: Internet
Author: User
Tags tomcat linux

When you start Tomcat, you are prompted to use 8080 ports, and then find the following findings:

A 8080 port-occupied error occurs when you install Oracle with Tomcat, JBoss, and other 8080-port-consuming servers on a single machine

First, check the use 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)

8080 ports were found to be used by Oracle, noting 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]#

Second, the search for solutions

Workaround One,

Will *.dispatchers= ' (protocol=tcp) (SERVICE=ORCLXDB) '

Modified to #*.dispatchers= ' (protocol=tcp) (SERVICE=ORCLXDB) '

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

Sql*plus:release 9.2.0.4.0-production on Fri June 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

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 stopped being occupied

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.