美文网首页
linux下实时查看tomcat运行日志

linux下实时查看tomcat运行日志

作者: sws1314 | 来源:发表于2019-01-04 09:28 被阅读7次
    1. 首先查找tomcat的进程pid:

       ps -ef |grep tomcat
      
    2. 找到pid后根据该pid 到 cd /proc/pid的目录下,使用ls -l 找到tomcat运行路径,进入该路径下的logs目录。

       cd /proc/ + pid
      
    image.png
    1. 使用以下命令实时查看tomcat的输出:

       tail -f catalina.out
      

    相关文章

      网友评论

          本文标题:linux下实时查看tomcat运行日志

          本文链接:https://www.haomeiwen.com/subject/mdthrqtx.html