【发布时间】:2018-11-20 15:41:19
【问题描述】:
当前尝试打开文件时出现此错误:
C:\Users\....\....\apache-tomcat-8.0.45\logs>catalina.out
The process cannot access the file because it is being used by another process.
我所做的是让应用程序在 webapps 中运行并使用以下命令启动tomcat:
catalina.bat jpda start
现在我想在 Windows 中查看日志。在 Ubuntu 中,可以使用tail -f catalina.out。但是如何强制查看tomcat登录windows呢?
【问题讨论】:
-
您使用什么应用程序打开日志文件?使用以只读方式打开文件的应用程序。
-
我正在使用 cmd... 应用程序之类的?
-
代替
tail -f catalina.out试试type catalina.out -
我只是举了一个明显使用 windows 的例子
-
cmd不是读取文件的应用程序。
标签: batch-file logging cmd tail