I just deployed (i.e. using the ZIP version of the download) Apache Tomcat 8.5 into a Windows Server 2012. Following are the steps taken:
Unzip into a special folder (not within the "C:" but somewhere else),
Defined the SYSTEM-LEVEL environment variable CATALINA_HOME pointing to the root of the deployment (e.g. K:\My Software\apache-tomcat-8.5.11
),
Made sure that JAVA_HOME points to the correct folder (in my case it would be C:\Program Files (x86)\Java\jre1.8.0_66
),
I then opened a command window, went to the bin
folder and executed the command startup.bat
, which caused another window to appear for a fraction of a second and then... nothing. Also tried as Administrator but with the same result.
My recollection is that it takes few seconds for Tomcat to be ready, time during which the temporary window is visible and a number of lines are written. In my case, it is like an eye blink.
I can't find error logs or any other indication that would explain why it is not working (which I checked by entering http:\\localhost:8080
into the browser).
Can anyone suggest where I can find evidences of the issue (and perhaps add whatever I find to this question for further support)?
Thanks in advance.
答案 0 :(得分:0)
我认为JAVA_HOME必须是jdk安装路径,JRE_HOME必须是jre安装路径。还必须设置CATALINA_HOME.In路径变量添加新变量值为;%CATALINA_HOME%\ bin;通过{{3 }}