解决Linux下Oracle Tomcat 8080端口冲突

来源:asp之家 时间:2010-05-02 18:09:00 

在启动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

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]

结果端口8080停止被占用

标签:linux,oracle,tomcat,端口
0
投稿

猜你喜欢

  • 吕英建SEO讲课记录 如何提高网站的权重

    2009-02-12 10:46:00
  • Typecho如何升级

    2011-04-22 12:50:00
  • 网站更换域名时的七个技巧(Google提供)

    2008-04-28 13:08:00
  • 56.com 视频网站访问出现问题分析

    2008-06-04 12:45:00
  • 简单讲义:关于网站的站外优化

    2009-02-10 18:03:00
  • 没有百度 我还有Google

    2009-08-23 13:14:00
  • 福建网民866万 全国居第六

    2008-02-21 13:37:00
  • WordPress博客转换到独立域名Blogger的方法

    2010-03-23 09:19:00
  • 谷歌推出应用于Android手机的快速搜索栏

    2009-10-12 10:38:00
  • 百度知道测试转移分类权限 12日将正式发放

    2009-10-09 09:36:00
  • 网络DNS服务器组建完全攻略

    2010-02-20 19:14:00
  • Web 服务器日志工具点评

    2008-04-18 15:55:00
  • 知名游戏论坛网站遭DDoS攻击勒赎

    2009-12-08 13:17:00
  • UCenter Home 1.5安装图文教程

    2009-02-15 09:29:00
  • GoDaddy:如何找回客户号码和密码

    2010-05-01 12:52:00
  • 防范SQL注入漏洞asp代码

    2007-10-07 12:31:00
  • UCWEB雷军:创业者要牢记两个关键词

    2008-10-30 17:21:00
  • Google AdSense 优化基本技巧

    2008-08-26 18:10:00
  • 中文网站管理员博客:追根溯源谈网站链接

    2008-12-10 17:02:00
  • 优化从网站的基础入手 着重网站的设计重点

    2008-12-30 09:39:00
  • asp之家 网站运营 m.aspxhome.com