關于tomcat點擊startup.bat后閃退問題的解決辦法
問題:使用免安裝的tomcat雙擊startup.bat后,啟動窗口一閃而過,而且tomcat服務未啟動。
原因:在啟動tomcat是需要讀取環(huán)境變量和配置信息,缺少了這些信息,就不能登記環(huán)境變量,導致了tomcat的閃退。
解決辦法:
1.在已解壓的tomcat的bin文件夾下找到startup.bat,右擊->編輯。在文件頭加入下面兩行:
SET JAVA_HOME=D:\Java\jdk1.6.0_10 (java jdk目錄) SET TOMCAT_HOME=E:\tomcat-6.0.35 (解壓后的tomcat文件目錄)
2.同樣的。在已解壓的tomcat的bin文件夾下找到shutdown.bat,右擊->編輯。在文件頭加入下面兩行:
SET JAVA_HOME=D:\Java\jdk1.6.0_10 (java jdk目錄) SET TOMCAT_HOME=E:\tomcat-6.0.35 (解壓后的tomcat文件目錄)
@echo off SET JAVA_HOME=C:\Program Files (x86)\Java\jdk1.7.0_11 SET TOMCAT_HOME=D:\apache-tomcat-6.0.30 rem Licensed to the Apache Software Foundation (ASF) under one or more rem contributor license agreements. See the NOTICE file distributed with rem this work for additional information regarding copyright ownership. rem The ASF licenses this file to You under the Apache License, Version 2.0 rem (the "License"); you may not use this file except in compliance with rem the License. You may obtain a copy of the License at rem rem http://www.apache.org/licenses/LICENSE-2.0 rem rem Unless required by applicable law or agreed to in writing, software rem distributed under the License is distributed on an "AS IS" BASIS, rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. rem See the License for the specific language governing permissions and
以上所述是小編給大家介紹的關于tomcat點擊startup.bat后閃退問題的解決辦法,希望對大家有所幫助,如果大家有任何疑問請給我留言,小編會及時回復大家的。在此也非常感謝大家對腳本之家網站的支持!
相關文章
讓IIS6支持JSP的設置方法(IIS完美整合Tomcat)
這方面的教程網上很多,多數是copy之后又copy,以至于有些細節(jié)一直含糊不清,也導致我走了許多彎路,今天腳本之家小編特為大家整理了一些方法,經測試正常運行jsp2014-07-07
Tomcat日志文件詳解及catalina.out日志清理方法小結
Tomcat作為常用Java應用服務器,會生成多種日志文件輔助排查問題與優(yōu)化系統(tǒng),其中catalina.out文件記錄重要輸出信息,但長期累積會占用大量磁盤空間,影響性能,本文介紹Tomcat日志文件種類及其作用,并重點討論如何安全有效地清理catalina.out文件2024-10-10

