起步软件技术论坛
搜索
 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 171|回复: 1

[处理中3] Tomcat自启动

[复制链接]

14

主题

31

帖子

225

积分

中级会员

Rank: 3Rank: 3

积分
225
QQ
发表于 2020-1-20 08:44:41 | 显示全部楼层 |阅读模式
centos7.3设置Tomcat为service,配置如下,启动过程出现下面错误

----------------------------------------------------------------------------------------------
[Unit]
Description=Tomcat
After=syslog.target network.target remote-fs.target nss-lookup.target

[Service]
Type=forking

ExecStart=/home/bex5/xxx_Bex5/Bex5_6267/apache-tomcat/bin/startup.sh
ExecStop=/bin/kill -s QUIT $MAINPID
ExecReload=/bin/kill -s HUP $MAINPID

PrivateTmp=true
[Install]
WantedBy=multi-user.target     
-------------------------------------------------------------------------------------------------

-------------------------------------------------------------------------------------------------
systemctl status tomcat -l
● tomcat.service - Tomcat
   Loaded: loaded (/usr/lib/systemd/system/tomcat.service; disabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since 日 2020-01-19 17:31:32 CST; 25s ago
  Process: 3690 ExecStart=/home/bex5/xxx_Bex5/Bex5_6267/apache-tomcat/bin/startup.sh (code=exited, status=143)

1月 19 17:31:32 xxx-BeX5-test startup.sh[3690]: 严重: The web application [/BusinessServer] created a ThreadLocal with key of type [com.justep.filesystem.a] (value [com.justep.filesystem.a@47c539c9]) and a value of type [java.lang.String] (value []) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
1月 19 17:31:32 xxx-BeX5-test startup.sh[3690]: SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
1月 19 17:31:32 xxx-BeX5-test startup.sh[3690]: SLF4J: Defaulting to no-operation (NOP) logger implementation
1月 19 17:31:32 xxx-BeX5-test startup.sh[3690]: SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
1月 19 17:31:32 xxx-BeX5-test startup.sh[3690]: 一月 19, 2020 5:31:32 下午 org.apache.coyote.http11.Http11Protocol destroy
1月 19 17:31:32 xxx-BeX5-test startup.sh[3690]: 信息: Stopping Coyote HTTP/1.1 on http-80
1月 19 17:31:32 xxx-BeX5-test systemd[1]: tomcat.service: control process exited, code=exited status=143
1月 19 17:31:32 xxx-BeX5-test systemd[1]: Failed to start Tomcat.
1月 19 17:31:32 xxx-BeX5-test systemd[1]: Unit tomcat.service entered failed state.
1月 19 17:31:32 xxx-BeX5-test systemd[1]: tomcat.service failed.
-------------------------------------------------------------------------------------------------

91

主题

13万

帖子

3万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
34363
发表于 2020-1-20 09:02:54 | 显示全部楼层
这个是tomcat的标准错误到网上 查找错误信息,不是平台的错误
远程的联系方法QQ1392416607,添加好友时,需在备注里注明其论坛名字及ID,公司等信息
发远程时同时也发一下帖子地址,方便了解要解决的问题  WeX5教程  WeX5下载



如按照该方法解决,请及时跟帖,便于版主结贴
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|X3技术论坛|Justep Inc.    

GMT+8, 2022-1-17 09:48 , Processed in 0.060576 second(s), 23 queries .

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表