问题描述:启动tomcat时,catalina.out日志输出报错,异常为:
java.lang.Exception: Socket bind failed:(98)Address already in use.
服务器端口已经被占用。
解决方案:删掉集群下的tomcat.pid文件,重启即可。
问题原因:tomcat.pid文件记录了当前集群的tomcat配置端口,当该文件存在时,会被误认为tomcat正在启动中,抛端口已被占用异常。
问题描述:启动tomcat时,catalina.out日志输出报错,异常为:
java.lang.Exception: Socket bind failed:(98)Address already in use.