模板天下 | 网页模板 | 学 院 | 源 码 | 书 籍 | 壁 纸 | 字 体 | JS脚本 | FLASH源码 | 软 件 | 矢 量 | 服务器软件 | 素 材 | 其 它 |
设为主页
加入收藏
联系站长
平面设计 | 网页制作 | 程序编写 | 数 据 库 | 媒体动画 | 网络冲浪 | 服务器相关 | 站长乐园 | 业界动态 |
当前在线
解决Linux下Oracle Tomcat 8080端口冲突
2007-7-26 17:41:49  作者:模板天下收集整理  来源:未知 网友评论 0 条 论坛
  

在启动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停止被占用

共分1页  [1] 

>> 相关文章

关于网站 | 客服中心 | 服务条款 | 合作伙伴 | 广告联系 | 本站历程 | 网站导航 | 发布资源 == 好的资源 大家共享

吉ICP备05000107号