Linux下tomcat启动不了的解决方法

 

         linux下启动tomcat的时候,如果服务启动不成功,可以到查看logs文件夹下的catalina.out
 日志文件,cat我的日志文件可得到如下的错误信息:

 

cat catalina.out

 Error: Exception thrown by the agent : java.rmi.server.ExportException: Port already in use: 8101; nested exception is:

  java.net.BindException: Address already in use
Feb 27, 2011 3:25:39 PM org.apache.catalina.loader.WebappClassLoader loadClass
INFO: Illegal access: this web application instance has been stopped already.  Could not load com.funambol.server.tools.directorymonitor.FileChangeEvent.  The eventual following stack trace is caused by an error thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access, and has no functional impact.
 

 

从字面上来看,是我的8101端口被占用了,应该是rmi需要用到这个端口,于是使用

 

netstat -anp
 

命令来查看各端口被进程占用的情况,这个命令输出包括进程的pid,得到这个pid之后,使用命令:

 

ps -ef|grep PID
 

即可查看进程的详细情况。

如果确认此进程可停止的话,

 

kill pid
 

重启tomcat就OK了!

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值