zoukankan      html  css  js  c++  java
  • servers运行失败:Tomcat Server are already in use (转)

    eclipse运行servers的project失败,总是提示错误:

    错误信息:

    Several ports (8005,8080, 8009) required by Tomcat v6.0 Server at localhost are already in use. The server may already be running in another process, or a system process may be using the port. To start this server you will need to stop the other process or change the port number(s).

    查看端口是否被占用:
    C:Documents and Settingsyangling.ASIAINFO>netstat -aon|findstr "8005"

      TCP    127.0.0.1:8005         0.0.0.0:0              LISTENING       5176

    C:Documents and Settingsyangling.ASIAINFO>tasklist|findstr "5176"

    javaw.exe                   5176 Console                 0    112,648 K

    停掉javaw.exe即可启动;

    从网上搜了一下通用解决方法,觉得这位大虾总结的很好:

    1,独立运行的Tomcat没有关闭.
    自安装的tomcat程序设置开机自动运行,或者在之前运行过,先关闭ecplipse或jbuilder,在任务管理器中找到Tomcat的进程,将其 kill掉,即可.有时候Tomcat非法关闭时,在进程中,仍然存在,仍然占用8080端口.所以只要将其进程杀掉.就可以解决.

    2,安装了其他的软件占用了Tomcat的端口.
    用可以查看端口的工具查看一下,或者,直接改掉tomcat的默认端口.即可.

    转自 http://blog.sina.com.cn/s/blog_573a052b0100if25.html

  • 相关阅读:
    分布式缓存系统Memcached
    HTTP(GET/POST)请求过程中的编码问题
    将指定的Json字符串转为指定的T类型对象(转帖)
    Linux 中有几个文件压缩和解压缩工
    策略添加-通过域策略组自动映射共享文件夹
    Centos 7 加AD域
    Gns3 模拟器创建VLAN
    防火墙常用命令
    Centos 6 任务计划配置
    Cenots 7 开启 SSH_远程连接
  • 原文地址:https://www.cnblogs.com/szxiaofei14/p/4650300.html
Copyright © 2011-2022 走看看