|
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.
-------------------------------------------------------------------------------------------------
|
|