Tomcat appears to still be running with PID 1097. Start aborted.

[test@ydw01 bin]$ ./startup.sh
1097
Using CATALINA_BASE:   /app/apache-tomcat-9.0.36
Using CATALINA_HOME:   /app/apache-tomcat-9.0.36
Using CATALINA_TMPDIR: /app/apache-tomcat-9.0.36/temp
Using JRE_HOME:        /app/jdk1.8.0_251/jre
Using CLASSPATH:       /app/apache-tomcat-9.0.36/bin/bootstrap.jar:/app/apache-tomcat-9.0.36/bin/tomcat-juli.jar
Using CATALINA_PID:    /app/apache-tomcat-9.0.36/bin/CATALINA_PID
Existing PID file found during start.
Tomcat appears to still be running with PID 1097. Start aborted.
If the following process is not a Tomcat process, remove the PID file and try again:
UID        PID  PPID  C STIME TTY          TIME CMD
root      1097     2  0 Oct15 ?        00:00:00 [bioset]

尝试kill -9 1097后,检查还是在,重启tomcat依然报错。原来如下:


[test@ydw01 bin]$ cat /app/apache-tomcat-9.0.36/bin/CATALINA_PID
1097
[test@ydw01 bin]$ rm -f /app/apache-tomcat-9.0.36/bin/CATALINA_PID
[test@ydw01 bin]$ ./startup.sh
cat: /app/apache-tomcat-9.0.36/bin/CATALINA_PID: No such file or directory
Using CATALINA_BASE:   /app/apache-tomcat-9.0.36
Using CATALINA_HOME:   /app/apache-tomcat-9.0.36
Using CATALINA_TMPDIR: /app/apache-tomcat-9.0.36/temp
Using JRE_HOME:        /app/jdk1.8.0_251/jre
Using CLASSPATH:       /app/apache-tomcat-9.0.36/bin/bootstrap.jar:/app/apache-tomcat-9.0.36/bin/tomcat-juli.jar
Using CATALINA_PID:    /app/apache-tomcat-9.0.36/bin/CATALINA_PID
Tomcat started.
[test@ydw01 bin]$ 
[test@ydw01 bin]$ 
[test@ydw01 bin]$ cd ../logs
[test@ydw01 logs]$ ll
total 24
-rw-r----- 1 test test 7490 Oct 29 16:33 catalina.2020-10-29.log
-rw-r----- 1 test test 9575 Oct 29 16:33 catalina.out
-rw-r----- 1 test test    0 Oct 29 16:33 host-manager.2020-10-29.log
-rw-r----- 1 test test 1062 Oct 29 16:33 localhost.2020-10-29.log
[test@ydw01 logs]$ tail -f catalina.out
2020-10-29 16:33:20 [main]  INFO: Looking for @ControllerAdvice: Root WebApplicationContext: startup date [Thu Oct 29 16:33:19 CST 2020]; root of context hierarchy
2020-10-29 16:33:20 [main]  INFO: Looking for @ControllerAdvice: Root WebApplicationContext: startup date [Thu Oct 29 16:33:19 CST 2020]; root of context hierarchy
2020-10-29 16:33:20 [main]  INFO: Mapped URL path [/**] onto handler 'org.springframework.web.servlet.resource.DefaultServletHttpRequestHandler#0'
2020-10-29 16:33:20 [main]  INFO: Root WebApplicationContext: initialization completed in 1959 ms
log4j:ERROR Could not find value for key log4j.appender.error
log4j:ERROR Could not instantiate appender named "error".
2020-10-29 16:33:21 [main]  INFO: cn.cntomorrow.listener.TimerTaskListener.contextInitialized(TimerTaskListener.java:34) - MR鏁版嵁瑙f瀽浜5鍚姩锛9-Oct-2020 16:33:21.014 INFO [main] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [/app/apache-tomcat-9.0.36/webapps/JZSH_MR] has finished in [3,995] ms
29-Oct-2020 16:33:21.018 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-8080"]
29-Oct-2020 16:33:21.027 INFO [main] org.apache.catalina.startup.Catalina.start Server startup in [5,135] milliseconds
^C
 

相关参看:https://blog.csdn.net/qq_24641227/article/details/84570322

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值