tomcat端口8080

来源:互联网 发布:excel数据录入程序 编辑:程序博客网 时间:2024/05/16 01:09
 

   今天用eclipse运行project时,报错          

  Several ports (8005, 8080, 8009) required by Tomcat v7.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).

  发现是tomcat默认使用的端口8080已经被占用,在dos中输入命令 netstat -an 查看端口8080被占用,在process中查看是javaw.

exe使用了此端口,关闭即可。

 

扩展:虽然tomcat默认使用的是8080端口,但是我们可以在安装目录/conf/server.xml中 ,将8080默认端口修改为其他的端口号。

 

网上查找的解决方法:

先在dos下用 netstat -an 命令看以下8080端口应该已经被占用了,netstat -aon|findstr "4000"下面是被占用的几种常见解决方式

1.点击你的右下角,看看tomcat的监视器是不是个绿点,如果是,停止他。

2.安装的数据库是什么,如果是oracle那么要改端口号,因为oracle带的服务器占用了8080。端口号的修改在tomcat安装目录/conf/server.xml中

3.贷款任务管理器(ctrl + alt + del)进程项中,用映像名称排序,找一下看看几个javaw,如果两个,那么结束内存占用比较少的就可以了。

 

原创粉丝点击