码迷,mamicode.com
首页 > 其他好文 > 详细

tomcat 日志目录 介绍

时间:2018-11-14 22:41:49      阅读:251      评论:0      收藏:0      [点我收藏+]

标签:tar   http   int   mysq   starting   utc   tco   apache   env   

 

 

[root@mysql tomcat]# ll
总用量 144
drwxr-x---. 2 root root  4096 11月 15 02:29 bin
-rw-r-----. 1 root root 19539 11月  4 01:42 BUILDING.txt
drwx------. 3 root root  4096 11月 15 02:47 conf
-rw-r-----. 1 root root  6090 11月  4 01:42 CONTRIBUTING.md
drwxr-x---. 2 root root  4096 11月 15 02:29 lib
-rw-r-----. 1 root root 57092 11月  4 01:42 LICENSE
drwxr-x---. 2 root root  4096 11月 15 02:47 logs
-rw-r-----. 1 root root  1726 11月  4 01:42 NOTICE
-rw-r-----. 1 root root  3255 11月  4 01:42 README.md
-rw-r-----. 1 root root  7142 11月  4 01:42 RELEASE-NOTES
-rw-r-----. 1 root root 16262 11月  4 01:42 RUNNING.txt
drwxr-x---. 2 root root  4096 11月 15 02:29 temp
drwxr-x---. 7 root root  4096 11月  4 01:39 webapps
drwxr-x---. 3 root root  4096 11月 15 02:47 work
[root@mysql tomcat]# cd logs/
[root@mysql logs]# ls
catalina.2018-11-15.log  host-manager.2018-11-15.log  localhost_access_log.2018-11-15.txt
catalina.out             localhost.2018-11-15.log     manager.2018-11-15.log

 

localhost开头日志都是tomcat访问日志

 

→tomcat实时日志

重启tomcat 

[root@mysql logs]# /usr/local/tomcat/bin/shutdown.sh 
Using CATALINA_BASE:   /usr/local/tomcat
Using CATALINA_HOME:   /usr/local/tomcat
Using CATALINA_TMPDIR: /usr/local/tomcat/temp
Using JRE_HOME:        /usr/local/java/jdk1.8
Using CLASSPATH:       /usr/local/tomcat/bin/bootstrap.jar:/usr/local/tomcat/bin/tomcat-juli.jar

[root@mysql logs]# /usr/local/tomcat/bin/startup.sh 
Using CATALINA_BASE:   /usr/local/tomcat
Using CATALINA_HOME:   /usr/local/tomcat
Using CATALINA_TMPDIR: /usr/local/tomcat/temp
Using JRE_HOME:        /usr/local/java/jdk1.8
Using CLASSPATH:       /usr/local/tomcat/bin/bootstrap.jar:/usr/local/tomcat/bin/tomcat-juli.jar
Tomcat started.
[root@mysql logs]# tail -f catalina.out 
15-Nov-2018 02:47:06.539 信息 [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["ajp-nio-8009"]
15-Nov-2018 02:47:06.562 信息 [main] org.apache.catalina.startup.Catalina.start Server startup in 3189 ms
14-Nov-2018 19:46:07.331 信息 [main] org.apache.catalina.core.StandardServer.await A valid shutdown command was received via the shutdown port. Stopping the Server instance.
14-Nov-2018 19:46:07.334 信息 [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-8080"]
14-Nov-2018 19:46:07.440 信息 [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["ajp-nio-8009"]
14-Nov-2018 19:46:07.441 信息 [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Catalina]
14-Nov-2018 19:46:07.880 信息 [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-8080"]
14-Nov-2018 19:46:07.926 信息 [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["ajp-nio-8009"]
14-Nov-2018 19:46:07.991 信息 [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-8080"]
14-Nov-2018 19:46:07.997 信息 [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["ajp-nio-8009"]
14-Nov-2018 19:46:17.119 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Server version:        Apache Tomcat/8.5.35
14-Nov-2018 19:46:17.222 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Server built:          Nov 3 2018 17:39:20 UTC
14-Nov-2018 19:46:17.222 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Server number:         8.5.35.0
14-Nov-2018 19:46:17.222 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log OS Name:               Linux
14-Nov-2018 19:46:17.222 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log OS Version:            2.6.32-358.el6.x86_64
14-Nov-2018 19:46:17.222 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Architecture:          amd64
14-Nov-2018 19:46:17.223 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Java Home:             /usr/local/java/jdk1.8/jre
14-Nov-2018 19:46:17.223 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Version:           1.8.0_191-b12
14-Nov-2018 19:46:17.225 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Vendor:            Oracle Corporation
14-Nov-2018 19:46:17.226 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_BASE:         /usr/local/tomcat
14-Nov-2018 19:46:17.229 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_HOME:         /usr/local/tomcat
14-Nov-2018 19:46:17.229 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.config.file=/usr/local/tomcat/conf/logging.properties
14-Nov-2018 19:46:17.234 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
14-Nov-2018 19:46:17.237 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djdk.tls.ephemeralDHKeySize=2048
14-Nov-2018 19:46:17.239 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.protocol.handler.pkgs=org.apache.catalina.webresources
14-Nov-2018 19:46:17.240 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dorg.apache.catalina.security.SecurityListener.UMASK=0027
14-Nov-2018 19:46:17.240 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dignore.endorsed.dirs=
14-Nov-2018 19:46:17.240 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.base=/usr/local/tomcat
14-Nov-2018 19:46:17.242 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.home=/usr/local/tomcat
14-Nov-2018 19:46:17.242 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.io.tmpdir=/usr/local/tomcat/temp
14-Nov-2018 19:46:17.245 信息 [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: [/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib]
14-Nov-2018 19:46:18.803 信息 [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-8080"]
14-Nov-2018 19:46:18.999 信息 [main] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared selector for servlet write/read
14-Nov-2018 19:46:19.152 信息 [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["ajp-nio-8009"]
14-Nov-2018 19:46:19.163 信息 [main] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared selector for servlet write/read
14-Nov-2018 19:46:19.170 信息 [main] org.apache.catalina.startup.Catalina.load Initialization processed in 4771 ms
14-Nov-2018 19:46:19.426 信息 [main] org.apache.catalina.core.StandardService.startInternal Starting service [Catalina]
14-Nov-2018 19:46:19.429 信息 [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet Engine: Apache Tomcat/8.5.35
14-Nov-2018 19:46:19.602 信息 [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory [/usr/local/tomcat/webapps/ROOT]
14-Nov-2018 19:46:22.123 信息 [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [/usr/local/tomcat/webapps/ROOT] has finished in [2,505] ms
14-Nov-2018 19:46:22.126 信息 [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory [/usr/local/tomcat/webapps/docs]
14-Nov-2018 19:46:22.254 信息 [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [/usr/local/tomcat/webapps/docs] has finished in [129] ms
14-Nov-2018 19:46:22.255 信息 [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory [/usr/local/tomcat/webapps/examples]
14-Nov-2018 19:46:23.442 信息 [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [/usr/local/tomcat/webapps/examples] has finished in [1,187] ms
14-Nov-2018 19:46:23.448 信息 [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory [/usr/local/tomcat/webapps/host-manager]
14-Nov-2018 19:46:23.571 信息 [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [/usr/local/tomcat/webapps/host-manager] has finished in [124] ms
14-Nov-2018 19:46:23.575 信息 [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory [/usr/local/tomcat/webapps/manager]
14-Nov-2018 19:46:23.633 信息 [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [/usr/local/tomcat/webapps/manager] has finished in [58] ms
14-Nov-2018 19:46:23.639 信息 [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-8080"]
14-Nov-2018 19:46:23.675 信息 [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["ajp-nio-8009"]
14-Nov-2018 19:46:23.823 信息 [main] org.apache.catalina.startup.Catalina.start Server startup in 4651 ms

 

看tomcat有没有启动成功,如果没有里面会有错误信息

 

 

catalina.out 日志 要定时清空里面文件内容  日志一直在累积,访问日志太多 几个g都有 就要清一下

清空日志文件里面的内容 减少空间占用
[root@mysql logs]# > catalina.out 

 




 

tomcat 日志目录 介绍

标签:tar   http   int   mysq   starting   utc   tco   apache   env   

原文地址:https://www.cnblogs.com/mingerlcm/p/9960003.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!