Tomcat工作不正常,为什么?

时间:2016-10-17 21:04:17

标签: catalina

我已经将二进制版本的tomcat服务器下载到我的Windows机器上。之后,我将其解压缩到C驱动器并将tomcat设置为home,其路径如下: -

TOMCAT_HOME = C:\Program Files\Apache\Tomcat\apache-tomcat-8.5.6
Path = C:\Program Files\Apache\Tomcat\apache-tomcat-8.5.6\bin

当我尝试通过命令行运行它时

catalina run

它出现以下错误

The CATALINA_HOME environment variable is not defined correctly
This environment variable is needed to run this program

因此我将TOMCAT_HOME更改为CATALINA_HOME。在这种情况下,有错误,但它提供以下输出

Using CATALINA_BASE:   "C:\Program Files\Apache\Tomcat\apache-tomcat-8.5.6"
Using CATALINA_HOME:   "C:\Program Files\Apache\Tomcat\apache-tomcat-8.5.6"
Using CATALINA_TMPDIR: "C:\Program Files\Apache\Tomcat\apache-tomcat-8.5.6\temp"
Using JRE_HOME:        "C:\Program Files\Java\jdk1.8.0_101"
Using CLASSPATH:       "C:\Program Files\Apache\Tomcat\apache-tomcat-8.5.6\bin\bootstrap.jar;C:\Program Files\Apache\Tomcat\apache-tomcat-8.5.6\bin\tomcat-juli.jar"
java.util.logging.ErrorManager: 4
java.io.FileNotFoundException: C:\Program Files\Apache\Tomcat\apache-tomcat-8.5.6\logs\localhost_access_log.2016-10-17.txt (Access is denied)
... ... ...
... ... ...

我有两个问题,那些是: -

  1. 是否必须放置CATALINA_HOME而不是TOMCAT_HOME
  2. 如何授予access log file(s)

0 个答案:

没有答案